I am in the R&D phase of developing an application, with the following key requirements:
- HTML5 web application – which will also have a hybrid version
- Forms data will be stored locally, when no Internet connection
I cannot use web storage due to quota limitations – I am comparing SQLite and Indexed DB.
- SQLite seems to be best fit, but it is deprecated
- Indexed DB is a good alternative, but there’s no Safari support – A hybrid application is supposed to be run on the iPad and on an Android device in the future.
I am confused in the selection of API. Is there some other alternative to SQLite or support of Indexed DB expected on Safari?
I think abandoning IndexedDB would be a bad idea, because it’s probably the format of the future, so Safari might stop supporting WebSQL.
It appears there are various JavaScript solutions to bridge the gap between the two – saving in whichever is available on the user’s browser:
JavaScript Library to Bridge IndexedDB and WebSQL
I think this is probably your best solution.