Using PhoneGap Command Line
- 2. Tools
● Node JS
● Apache Ant
● SDK
○ XCode for iOS App
○ Android SDK for Android App
- 4. Install Apache Ant
Download and install Apache Ant from
https://ant.apache.org/bindownload.cgi
*** Mac user, use brew to install ant ; brew install ant
- 6. Create New Project
Use PhoneGap command line to create new
project eg; HelloWorld. then dev your code in
www directory.
phonegap HelloWorld com.example.helloworld
- 7. Install PhoneGap plugins
Use PhoneGap command line to install plugins
phonegap plugin add <url-plugin>
* List of plugins : https://build.phonegap.com/plugins
- 8. Build Project to Mobile App
Use PhoneGap command line to build project
to Mobile Application, after build you’ll get
native application in platforms directory
phonegap build android
* Change android to another platform eg: ios
- 9. Run Project on Device / Emulator
Use PhoneGap command line to run project on
your device
phonegap run android
* Change android to another platform eg: ios