hey guys is there any way to use PhoneGap Developer App for ionic project ? if yes how ?
i have tried
ionic serve
it generated this but i can’t access it through developer app on my phone…
is there any method to change the http://0.0.0.0 to my IP address ?
Running dev server at http://0.0.0.0:8100
I’m assuming you’re talking about the iOS/Android app that connects through a local proxy. I’ve been able to get this to work by using phonegap serve inside the cordova build folder (/www)
I also had to use a different port, since my server is running on the default port that phonegap uses, you can change this as expected: phonegap serve -p 4000
should i replace the ionic command to cordova in order to get it works ? if yes which part of the code/directory should i modify in order to get all the ionic build missing file into corodova build app.
The terms ‘Ionic build’ and ‘cordova build’ are essentially same thing (correct me if I’m wrong, Mike), the www/ directory is what cordova uses to compile the app for iOS/Android devices. I’m not sure why you’re getting this error. I’ll try to re-create what you did and see what happens.
I don’t think those commands were intended to be used alongside the phonegap developer app. You could google around to figure out how to generate that folder or you could just create yourself and add the config.json file manually.
Thanks for your time !
one last question, do you mind to tell me how you build your cordova/phonegap project with command and how you integrate it with ionic framework ?
I hacked my way there like this: I created the ionic “loyalty” demo project. Independently, I created a phonegap project. I built the phonegap project and made sure it came up on my phone running the phonegap developer app. Then I merged the loyalty project files into the phonegap project: I copied over everything that didn’t exist in the phonegap project, and I copied over everything in the www directory. Finally, I did an ionic build ios and a phonegap build ios, phonegap serve, and the loyalty app came up on my phone. It’s a hack, but I’m just starting out.
By the way, here is another way to do the same sort of thing: Go to http://apps.ionicframework.com/, you can upload your project there and then run it on your iPhone using an iPhone app called Ionic View (not sure if they have an Andriod yet), which is similar to the phonegap developer app.