by shadowmint · 12y ago · 0 comments
IOS8 brings indexeddb to ipads; at that point it pretty much runs everywhere, just use indexeddb.
Its a pretty decent async API which supports reasonably complex queries (better than get-by-key like this), and has a (basic but working) node implementation to run unit tests against. (see http://caniuse.com/indexeddb)
Why would you use this primitive api?
Supporting older browsers is great and all, but if you dont get anything over it except giant cookies, why bother?
Even with iOS 8's support for IndexedDB, there are edge cases in different browsers localForage handles, and it handles storage of Blob data and TypedArrays transparently too, which is handy.
So if you want to actually reach the majority of mobile users at this point, IndexedDB is not yet the way to go.
I have no idea how many people use "Android browser" versus Chrome; Google is certainly pushing for higher mobile Chrome adoption. -- Okay, http://www.netmarketshare.com/ seems to indicate that Android browser market is pretty much split two-thirds Android browser, one-thirds Chrome. No idea how reliable their dataset is.