nolanlawson / cordova-plugin-sqlite-2

Native SQLite database API for Cordova/PhoneGap/Ionic, modeled after WebSQL (UNMAINTAINED)
https://nolanlawson.com/2016/04/10/introducing-the-cordova-sqlite-plugin-2/
Apache License 2.0
168 stars 28 forks source link

Command Not Defined Error #48

Closed tmorganbos closed 7 years ago

tmorganbos commented 7 years ago

I've upgraded from the old cordova-plugin-sqlite to this version.

My code opens a database and I can see it when I inspect through the Safari debugger. However, any attempt to execute a transaction ends with a "Command not defined" error. It's not always caught in the debugger - I see it intermittently.

I've tried removing the plugin and platform, but this is still a problem. Any thoughts on how to fix this?

nolanlawson commented 7 years ago

I’ve never seen this issue, sorry. Do you have a test case to reproduce?

On Mar 9, 2017, at 6:42 AM, tmorganbos notifications@github.com wrote:

I've upgraded from the old cordova-plugin-sqlite to this version.

My code opens a database and I can see it when I inspect through the Safari debugger. However, any attempt to execute a transaction ends with a "Command not defined" error. It's not always caught in the debugger - I see it intermittently.

I've tried removing the plugin and platform, but this is still a problem. Any thoughts on how to fix this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nolanlawson/cordova-plugin-sqlite-2/issues/48, or mute the thread https://github.com/notifications/unsubscribe-auth/AARUwqajwfwEE6dgEMfYNKdilnHz6b9Gks5rkA_TgaJpZM4MYKwk.

tmorganbos commented 7 years ago

I'm new to PhoneGap, picking up an app another developer wrote a while ago, and boy, do I feel dumb.

I was using a connected device and running through Phonegap desktop developer. I thought plugging a device in meant it would run on the device, but it was running on the desktop. (Stupid me)

Forcing the app to the device with the CLI solved the problem.