Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Cordova using Web SQL API which has been deprecated?

If you check here: http://cordova.apache.org/docs/en/3.3.0/cordova_storage_storage.md.html#Storage , the page clearly shows the Web SQL Database API is being used.

This Web SQL Database API is no longer being maintained as mentioned here: http://dev.w3.org/html5/webdatabase/

Moreoever, the PhoneGap solution for Web SQL Database API is not available on all platforms. On the other hand, they also mention that indexedDB is supported, but on a different set of devices.

Why haven they broken the cross platform norms and also used an API being deprecated?

like image 225
Ravindranath Akila Avatar asked Mar 27 '26 10:03

Ravindranath Akila


1 Answers

It's based on whether the native WebViews support those technologies. On iOS, there is no IndexedDB support, and who knows when that will change. On Android, I think it's only in WebViews for the latest version (it's been supported in Chrome for a while now). But Web SQL is supported on both Android and iOS, even though it is deprecated.

So Apple is really the one to blame for breaking cross-platform norms and using a deprecated API. Please complain to them and hopefully they'll eventually get their act together.

like image 186
dumbmatter Avatar answered Mar 31 '26 05:03

dumbmatter