I am building a Phonegap App and need to store data in a database. I would like to be able to access this information offline, but sync it to the server too. I want this app to work across all platforms if possible. I know that there are a ton of posts out there with similar questions but I cant find any that are relatively recent.
I have done a ton of research on it but it has only confused me more. I know IndexedDB is available on all browsers except IOS Safari now (but will be in IOS 8 http://caniuse.com/indexeddb and my app wont be completed till then probably) But I've heard that webSQL(SQLite) is better, but is of course depreciated.
Should I go with SQLite like Samuel's comment here? He has a syncing plugin for it too. SQLite database on PhoneGap / iOS - More than 5mb possible
Or with a Polyfill for IndexedDB as explained here? http://blog.nparashuram.com/2012/10/indexeddb-example-on-cordova-phonegap_12.html
I also just came accross this library, has anyone used it? It looks promising... http://pouchdb.com/learn.html
Or something completely different?
Also are there any plugins for syncing to a server?
Thank you in advanced for any responses