Cordova app to fill up IndexedDB, based on Raymond Camden's blog: http://www.raymondcamden.com/2015/04/17/indexeddb-and-limits
Designed to figure out how much IndexedDB data iOS 8 will let you store in an app.
Note: you need to use the experimental WKWebView instead of UIWebView, because UIWebView doesn't support IndexedDB (see instructions below).
Each time you hit "Add Data", it will insert a ~500KB image into the database, in base64 string format. So it's not exactly 500KB (in fact, it's probably quite a bit more due to the base64 overhead), but Apple's IndexedDB doesn't support Blobs, so it's what we have to do.
Set up Cordova with WKWebView:
# if you don't have cordova
npm install -g cordova
npm install -g ios-sim
cordova platform add ios
cordova platform rm ios
cordova platform add [email protected] --usegit
cordova plugin add https://github.com/apache/cordova-plugins.git#master:wkwebview-engine
Then run it:
cordova run ios
To run on a real device, you'll need to open up the XCode project under platforms/ios
and then hit the "Run" button.
Details here: https://github.com/apache/cordova-plugins/tree/master/wkwebview-engine
Just connect via Safari Web Inspector and run something like this:
setInterval(addData, 500);