Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMode() in cordova browser returns SQLite adapter, which is unsupported in browser platform #106

Closed
syonip opened this issue Jan 3, 2019 · 2 comments
Labels

Comments

@syonip
Copy link

syonip commented Jan 3, 2019

Using the code provided in the cordova example: https://docs.nanosql.io/examples/cordova, I'm getting the following errors in console:

sqlite-adapter.js?0a51:31 NanoSQL "9db1ab78" using SQLite.
SQLitePlugin.js:174 OPEN database: 9db1ab78_db
cordova.js:1004 Error: exec proxy not found for :: SQLitePlugin :: close
cordova.js:1004 Error: exec proxy not found for :: SQLitePlugin :: open
SQLitePlugin.js:196 OPEN database: 9db1ab78_db FAILED, aborting any pending transactions
SQLitePlugin.js:82 Could not open database
3SQLitePlugin.js:107 database is closed, new transaction is [stuck] waiting 

It seems getMode() function returns SQLite adapter, which is unsupported in browser platform. It should probably resolve to indexedDB like when running without cordova.

@only-cliches
Copy link
Owner

Didn't even know there was a "browser" platform! Just pushed 1.7.0 version of the cordova plugin to NPM, should resolve this issue.

@syonip
Copy link
Author

syonip commented Jan 7, 2019

Works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants