Reputation: 47
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?
Upvotes: 3
Views: 3771
Reputation: 31
The reason is that Cordova is pushing the js calls into device native code, and all the devices use SQLLite as their main db technology, so hence the system calls from websql convert perfectly, unlike what would occur with indexedDB.
Upvotes: 0
Reputation: 9683
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.
Upvotes: 6