Find the nearest coffee shops that you can work from.
If you do not have Ionic 2 or Cordova installed:
# Ionic & Cordova CLI
npm install -g ionic@beta
npm install -g cordova
# iOS simulator starter & deployer
npm install -g ios-sim
npm install -g ios-deploy
- Fork the repo
git clone https://github.com/Political-Tambourine/crema.git && cd crema
- Install package dependencies:
npm install
- Add iOS as platform:
ionic platform add [email protected]
Latest version may be unstable - use version 4.1.1 - Install Geolocation Cordova plugin:
ionic plugin add cordova-plugin-geolocation
- Install Native GoogleMap Cordova plugin:
ionic plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="YOUR_API_KEY"
NOTE: As of 7/20/16 - cordova-plugin-googlemaps npm registry points to an old version of the plugin that is incompatible with Cordova iOS 4+. So we are installing from Git repo's HEAD (https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps) - Prepare plugins for build:
cordova prepare
- Build and run emulator:
ionic emulate ios
- You can specify target device by adding target flag
ionic emulate ios --target
- During development, you should run the emulator with live-reload and consolelogs flags
ionic emulate ios -lc
- You can specify target device by adding target flag
Note:
- If build fails - try running
cordova plateform update ios
and re-run the emulator again - If app runs on the emulator but throwing "GoogleMaps plugin not found" error, try removing googlemaps plugin, the ios platform, and reinstalling them
cordova plugin rm plugin.google.maps cordova plugin rm cordova-plugin-googlemaps cordova plugin rm com.googlemaps.ios cordova plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="YOUR_API_KEY"