iOS 8 not working at all. #23

Closed
JerryLumpkins opened this Issue Sep 22, 2014 · 8 comments

Projects

None yet

3 participants

@JerryLumpkins

Safari in iOS 8 is not recognizing the ydn plugin at all. Have you been able to identify the issues? And do you have any time frame in mind for releasing an update that will work with iOS 8?

@yathit
Owner

iOS Safari 8 and OS X Safari 7.1 has serious bug on creating transaction with multiple stores. The bug is not something we can workaround.

So during the time please use WebSQL for iOS 8, as follow:

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

Thank you for the response. Please keep me posted.

@yathit
Owner

Indexeddb in safari is not supported.

@yathit yathit closed this Nov 16, 2014
@JerryLumpkins
@yathit
Owner

Safari has bugs in multi-store transaction and key generations. Working around those bug will cause changes your application logic. It is not just worth it. Apple have to fix them, sooner or later. WebSQL is fine.

You can still use ydn-db for indexeddb in safari, if your application is already aware of those bugs. But default, ydn-db will select websql on safari.

@JerryLumpkins
@rosshadden

@yathit You said: "You can still use ydn-db for indexeddb in safari, if your application is already aware of those bugs."

My app does not use multi-store transactions or key generations. How do I tell ydn to use the same default fallback array ['indexeddb', 'websql', 'localstorage', 'sessionstorage', 'userdata', 'memory'], but to let safari use indexedDB if present?

@yathit
Owner

Please use rel 1.1.4 (just updated) and provide your preference (as you wrote above) in instantiating ydn.db.Storage. The default don't include 'indexeddb' for Safari browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment