0

On iOS 8.4 (iPad Air), I am able to use IndexedDB in Safari, but in Chrome, it says it's null. Instead it has WebSQL.

Why is this the case? Is there any way to get IndexedDB on Chrome iOS or is it not added? (It's odd that it returns null and not undefined).

//Returns null
console.log( window.indexedDB );
console.log( window.webkitIndexedDB );

//Returns undefined
console.log( window.mozIndexedDB );
console.log( window.OIndexedDB );
console.log( window.msIndexedDB );
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330

1 Answers1

2

It is because Chrome uses the WebView and not the new WkWebView which is new in iOS8.

iOS WebView doesn't support indexedDb (and it is readonly there so even polyfills to enable indexedDb over websql don't work)

You can find more info on the Chrome issue tracker here: https://code.google.com/p/chromium/issues/detail?id=423444

Dick van den Brink
  • 13,690
  • 3
  • 32
  • 43