Open brodycj opened 8 years ago
I realize this is an old ticket, but I'd thought I'd share a workaround I've been successful with. In my case, I'm specifically using cordova-sqlite-ext
in order to use preexisting databases, but this should work the same for the other variants.
There are just a few simple steps to take to get this working in a dev environment:
phonegap plugin add cordova-sqlite-ext
-- add the plugin to the phonegap dev app (NOT to your project app, but rather the phonegap dev app)www
directory of the phonegap dev appphonegap build ios
and phonegap run ios
At this point, on the iOS device (or simulator), use the phonegap dev app as normal. You'll need to run phonegap serve
on your dev machine, then put in your machine's IP address/port to the phonegap dev app. Since this plugin (and optionally the preexisting database) already exist on the filesystem due to your adding them to the phonegap dev app, the app you're building should just detect this and use it.
I hope this helps others attempting to use Phonegap Developer app with this plugin. Cheers!
From this question: litehelpers/cordova-sqlite-ext#10
ref: