Creating a PhoneGap Project
Open your command line tool and go to the directory where you maintain your source code, and run a command such as the following:
$ cordova create pushappsdemo com.pushapps.demo PushAppsDemo
$ cd pushappsdemo
Lets add support for Android and iOS:
$ cordova platform add android
$ cordova platform add ios
Now lets build the project for both platforms;
$ cordova build
Adding the PushApps plugin to the PhoneGap project
Open you command line tool and go to the project directory. Execute the following command:
$ cordova plugin add https: //github .com /PushAppsService/PushAppsPhonegap .git $ cordova build |
That's it!
What's Next?
- If you creating an Android project than you're set to go. Check out our PhoneGap API.
- If you creating an iOS project, please see how to Configure your iOS project