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

PhoneGap developer app integration #427

Open
brodycj opened this issue Feb 16, 2016 · 1 comment
Open

PhoneGap developer app integration #427

brodycj opened this issue Feb 16, 2016 · 1 comment

Comments

@brodycj
Copy link
Contributor

brodycj commented Feb 16, 2016

From this question: brodycj/cordova-sqlite-ext#10

ref:

@jcrowthe
Copy link

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:

  1. Clone the Phonegap Developer app: https://github.com/phonegap/phonegap-app-developer This is already necessary for iOS (since Apple has removed the app from their App Store) in order to use the phonegap dev app on iOS. However, we're going to modify it slightly.
  2. 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)
  3. (If using the -ext variant of this plugin) Copy your database into the www directory of the phonegap dev app
  4. phonegap 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!

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

No branches or pull requests

2 participants