You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been discussed and solved on slack but this is the essential issue:
The following does not create a database in iOS (WebView) when built with Cordova/PhoneGap:
vardb=newPouchDB('myDB');
The above code does work when running it in Safari on the same iOS device. The following does also work when build for Android (WebView) with Cordova/PhoneGap.
Iow: this is Cordova / PhoneGap iOS WebView specific issue. The rest of this issue refer to this environment only.
The above code will not create a database, and the created event will not fire. Appending an adaptor for specific telling Pouch to use ex websql does not work either. None of the API methods will perform correctly either.
"TypeError: cordova.fireWindowEvent is not a function. (In 'cordova.fireWindowEvent(opts.name + "_pouch", {})', cordova.fireWindowEvent' is undefined);"
Removing this block and this block does resolve the issue and Pouch works as expected.
A big thank you to @daleharvey for helping out debugging and resolving this issue on slack!! Mucho tusen takk!
The text was updated successfully, but these errors were encountered:
trygve-lie
added a commit
to trygve-lie/pouchdb
that referenced
this issue
Jan 7, 2016
This issue has been discussed and solved on slack but this is the essential issue:
The following does not create a database in iOS (WebView) when built with Cordova/PhoneGap:
The above code does work when running it in Safari on the same iOS device. The following does also work when build for Android (WebView) with Cordova/PhoneGap.
Iow: this is Cordova / PhoneGap iOS WebView specific issue. The rest of this issue refer to this environment only.
The above code will not create a database, and the
created
event will not fire. Appending an adaptor for specific telling Pouch to use ex websql does not work either. None of the API methods will perform correctly either.Ex, doing a simple insert will fail silently:
Though, trying to create a database this way:
yelds the following error message:
Removing this block and this block does resolve the issue and Pouch works as expected.
A big thank you to @daleharvey for helping out debugging and resolving this issue on slack!! Mucho tusen takk!
The text was updated successfully, but these errors were encountered: