This demo utilizes Pubnub's Phonegap Plugin, available from: https://build.phonegap.com/plugins/2382, also available via the Cordova plugins directory at: http://plugins.cordova.io/#/package/com.pubnub.cordova.pubnub
You can either use PhoneGap Build cloud tool, or build it by yourself using Cordova command-line interface (CLI) tools.
- Go to PhoneGap Build and sign in
- Click "+ New App" button
- Paste this Git URL, https://github.com/pubnub/cordova-plugin-demo.git in the field (the branch is master but you can leave it blank)
- Click the "Pull from .git repository" button
- When it finish fetching the code, click Ready to Build
- Scan the QR Code with your device, and install
or,
Clone this repo, add mobile platforms (e.g. Andorid), add plugin, then run!
$ git clone https://github.com/pubnub/cordova-plugin-demo.git
$ cd cordova-plugin-demo
$ cordova platform add android
(or other mobile platforms you need)$ cordova plugin add com.pubnub.cordova.pubnub
$ cordova run