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

"OPEN database: xx failed..." on Galaxy S6, Android 5.1.1 #390

Closed
cepm-nate opened this issue Nov 20, 2015 · 1 comment
Closed

"OPEN database: xx failed..." on Galaxy S6, Android 5.1.1 #390

cepm-nate opened this issue Nov 20, 2015 · 1 comment

Comments

@cepm-nate
Copy link

Tested on five Galaxy S6s, all have the same problem. (Edge and non-edge have some problem)

Running window.sqlitePlugin.openDatabase({name: 'mm'}); logs the message OPEN database: mm failed, aborting any pending transactions.

I've tried it with "location:1", 2, and 3, and get the same error.

Anyone else out there have an S6 fully updated they can test this on? The same code runs fine on all other systems.

Thanks ahead of time!

@cepm-nate
Copy link
Author

A google search put me at #336 which mentions adding "androidDatabaseImplementation: 2" into the sqlitePlugin.openDatabase arguments.

My openDatabase command now looks like this

window.sqlitePlugin.openDatabase({name: 'mm', location: 2, androidDatabaseImplementation: 2});

and it works. This is on a Samsung Galaxy S6 Edge from Verizon. It also works on another S6 edge phone (Android 5.1.1; SM-G925V Build/LMY47X). I'm posting this information in hopes that it helps someone else.

My build setup is Adobe PhoneGap Build, cli-5.2.0.

I'm not going to keep the S6 edge (bought it just to fix this bug, and will return it in a few days), so I'll be playing around with a 'Try to open the database normally, if that dosen't work, then try with the android command, and if that dosen't work, then throw an error' logic flow. Why dosen't the plugin do this internally though? :-)

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

No branches or pull requests

1 participant