PhoneGap Desktop : import exist Cordova Project and Getting start develop

PhoneGap Desktop : import exist Cordova Project and Getting start develop

Test On:
- Mac OS X El Capitan
- PhoneGap Desktop 0.1.11
- Apache Cordova 5.3.3
- iPhone 4 iOS 7.1.2

[install phonegap desktop]
1. Download latest version on github https://github.com/phonegap/phonegap-app-desktop/tree/master/installers/osx

2. Install on your mac, accept license agreement by click "Agree"


3. Drag icon "PhoneGap.app" to your "Applications" icon and release.


4. Launch PhoneGap from your "Launchpad", if new version available you should see notice "Update Available" as below image.


if no new version available, you should see like below image.




[import cordova project]
1. Click on "+" icon and choose "Open existing PhoneGap project..." eg. but we choose Cordova project.


2. Browse to your Cordova project folder and "Select".


3. Your Cordova project will import to PhoneGap Desktop app as below image. But icon image not found.


[removed project]
1. PhoneGap not refresh project on event click any menu, then try to remove project first. Click on "Octahedron rounded rectangle" icon to stop running server.


2. After server stopped, you will see message "Server is offline" on bottom grey bar.


3. Click on menu "-" icon, the project icon will change to orange rectangle with white cross icon. Just click on it.


4. The project was removed from PhoneGap but still exist on your disk.


[adjust launch icon]
1. Open your Cordova project folder and open "config.xml" with your text editor. Add code to load icon into project like below.
<widget>
      :
      <icon src="icon_gd2d.png"/>
      :
</widget>


2. Inside folder "www", place your icon same name as in your "config.xml" file.


3. Re-Import your Cordova project in PhoneGap again. You should see project icon has changed.


[test on iOS device]
*sample via "USB", with "3G" and "Personal Hotspot" through "DTAC" mobile internet provider 
1. Connect internet via WIFI, 3G or 4G, open AppStore search "phonegap developer"


2. Open "PhoneGap Developer" app.



3. PhoneGap app will standby. Tap on ip address and change to be same as "PhoneGap Desktop" for this sample is "172.20.10.2:3000"

[PhoneGap Desktop, OS X App]

 [PhoneGap Developer, iOS App]

4. Tap on "Connect", just waiting on downloading.


5. After download completed, it's change step to "extracting...".


6. After extracted, it's show "success!".


7. Your Cordova project will launch on device.


It's work :)

[iOS error downloading]
If you have got this error like below.
1. Make sure your PhoneGap Desktop and PhoneGap Developer is update to latest version.
2. Make sure your internet connection no problem.
3. Make sure your ip address on PhoneGap Developer is same as PhoneGap Desktop.




Let's start development :)

Comments

  1. My friend website has been infected with malware. The tips shared in this post helps me in a better way and guide me to protect my website.
    Hire Cake Php Programmer
    Dedicated Wordpress Developer
    Smarty Developers
    Hire Dedicated Wordpress Developer
    Dedicated Magento Developer

    ReplyDelete
  2. I appreciate the effort of the author. I found it is an informative post on bootstrap technology. I hope you shared this kind of blog in future to help both the developer and business people.
    Hire Phonegap Developer
    Hire Cake Php Developer
    Hire Dedicated Developers
    Dedicated Magento Developer
    Hire Cake Php Programmer

    ReplyDelete
  3. This is really helpful and informative, as this gave me more insight to create more

    ideas and solutions for my plan.keep update with your blog post.

    Website Design Company in Bangalore
    Website Development Company in Bangalore

    ReplyDelete

Post a Comment