Closed ghost closed 7 years ago
Hi The plugin only works with Sqlite db on phone, it will not work on web browser with websql.
Hey Rahul, thanks a lot for you answer, but I'm getting this error even when I run in my device. It's seems that I can't use the methods...
Attached a screen shot of the problem taken with the USB debugging tool for Chrome.
Are you using sqlite database? The plugin is configured for sqlite db only.
Ya, I'm using sqlite. It seems that the problem didn't reach the database yet, I can't even use the methods copy/remove from the plugin, I mean, it seems that I never added the plugin using the CLI, but I did it!
I'm wondering if you can share some code with a working DB to exemplify how it is used. Dunno if I'm asking a lot, I never made a mobile app before.
Thanks anyway for your kindly responses!
How are you running the app? using some IDE or CLI?
If you are using CLI make sure you have run cordova prepare android && cordova build android
command.
Also does the config.xml inside platforms directory (platforms/android/res/) have sqlDB entry?
Hey Rahul!
Got it working after following these instructions: https://github.com/ymochi/prepopulated-DB-for-hybrid-applications
It's working perfectly, thx a lot for your time and patience.
Thanks a lot for this plugin. I hope you can help me to make it run in my environment.
This is my cordova_plugins.js:
I can't copy the db cuz I'm getting TypeError: Cannot read property 'sqlDB' of undefined
I saw this in other issues but I'm using Chrome, that supports websql.