I have a page on my web app that should clear all offline data for the app, including the localStorage and all IndexedDBs.
My problem is on iOS8+ (Safari 8),indexedDB.webkitGetDatabaseNames()
is not supported. My intention was to step through each database name and use indexedDB.deleteDatabase()
to delete each database, but without knowing the names of the databases, this is impossible.
I suppose it would be naive to expect a .clear() similar to localStorage, but is there another way to do this?