Quick Tip: Testing Ionic Apps with the PhoneGap Developer App

September 8, 2014By 1 Comment

pg-dev-appThe PhoneGap Developer App is a great tool for testing PhoneGap and Cordova apps quickly with no platform SDK setup required on your machine. You just download the PhoneGap App from the app store, run a PhoneGap CLI command from your machine to serve up the application you want to test on any iOS, Android or Win Phone device and sync to it from the app running on the device. It also includes live reloading so you can see any changes to your app immediately reflected on your device while running it.

If you’re using the Ionic framework for your mobile development, you may not be aware that you can still use the PhoneGap Developer app to test your apps built with Ionic on different devices as well with a couple quick tips. You will need to use the PhoneGap CLI to serve your application rather than the Ionic CLI for this case and create an empty .cordova folder in the root of your Ionic project. The PhoneGap CLI currently looks for the existence of a .cordova folder, so it will only properly connect if it’s there until this dependency is removed. It should be removed in the near future but for now I wanted to give this tip on how to make it work.

Note: If you have the the latest Ionic CLI update (version 1.2) and are using the live reload flag upon run (ionic run ios -l), you can try to connect to the URL it returns from the PhoneGap Developer App as well. In my testing it worked to connect and run my app though I did find some things not working quite right which I will investigate further. For now I would recommend using the PhoneGap CLI for this workflow.

For further details on the PhoneGap Developer App and how to use it, please see the detailed announcement post or my previous post on this topic.

Filed in: CordovaionicMobile DevelopmentPhoneGap Tags:

About the Author ()

Comments (1)

Trackback URL | Comments RSS Feed

  1. Jon says:

    Thnx!, I just tried it and works great, another easier to debug on my device.

Leave a Reply