Sample app demonstrating Apache Cordova (also known as Adobe PhoneGap) plugins usage in an AngularJS context...
The application is also based on the Ionic Framework.
- Ionic npm module needs to be installed on your local machine
$ npm install -g ionic
- In the app folder, type:
$ ionic platform remove android
$ ionic platform add android
$ cordova plugin add org.apache.cordova.console
$ cordova plugin add org.apache.cordova.device
$ cordova plugin add org.apache.cordova.device-motion
$ cordova plugin add org.apache.cordova.inappbrowser
$ cordova plugin add org.apache.cordova.statusbar
$ cordova plugin add org.apache.cordova.vibration
$ cordova plugin add org.apache.cordova.geolocation
$ cordova plugin add org.apache.cordova.network-information
- To play with the application on Android simulator, type:
ionic emulate android
- To play with the application on your favorite Android device, type
ionic run android
This was heavily influenced by The Enlightened Developer. Go check his stuff out.