Search code examples
safariios8ydn-db

ydn-DB doesn't work with iOS8 Safari


I recently updated my ipad to iOS8 and the HTML/Javascript app stopped working because safari on iOS8 cannot recognize ydn-db object.

Has anybody else also facing this issue? Any workaround?


Solution

  • Have you seen this issue? Safari 7.1 (also Safari 8) has a bug (currently unconfirmed) that could not create transaction with multiple Object Stores.

    As a workaround, use WebSQL instead, as follow:

    var db = new ydn.db.Storage('db name', schema, {mechanisms: ['websql', 'indexeddb']);