This is a starter PhoneGap application with a node.js builder, bower to manage javascript app dependencies, jasmine and karma for unit tests and cucumber and appium for functional tests. It builds a simple tilt meter.
These instructions assume you are developing on a Mac. See Installing Cordova on Windows for Windows installation instructions.
- XCode Version 8.3 or greater
- You will need an Apple Developer account and a Developer Certificate
- Android Studio 2.2.2 or greater
- Android SDK 7.1.1 (API Level 25)
- Tools
- Platform-tools
- Build-tools
- Node Version 7.8.0 or latest.
- npm Version 4.2.0 or latest.
Follow the instructions at https://cordova.apache.org/docs/en/latest/guide/platforms/ios/
Note that we found it was easy to run iOS in debug mode by opening the iOS project in Xcode and setting the team name and developer profile there. Once you set it there once, it will stay set until you delete the platforms folder and do a complete rebuild.
Configure the JAVA_HOME and ANDROID_HOME environment variables.
Add $JAVA_HOME/bin, $ANDROID_HOME/platform-tools and $ANDROID_HOME/tools to your PATH environment variable.
Add ./node_modules/.bin
to your PATH environment variable.
git clone https://github.com/geocolumbus/geomob.git
npm run build
npm install
bower install
bower-installer
phonegap platform add android
phonegap platform add browser
phonegap platform add ios
phonegap build
If you get a message like "Error code 65 for command: xcodebuild with args ..." then it means that you need to add your GroupId to the HelloWorld iOS project using XCode. Then rerun PhoneGap Build.
You can run the PhoneGap app in an attached device, an emulator or the browser.
There are various run options:
phonegap run browser
phonegap emulate ios
phonegap run ios
phonegap emulate android
phonegap run android
npm run test
You can inspect test results by navigating your browser to:
coverage/report-html/index.html
There are many ways to get started with PhoneGap.