Skip to content

Compile & Run ExampleCordova iOS

Umer Asif edited this page Oct 21, 2016 · 2 revisions

To run the plugin sample, follow these steps:

  • Make sure your computer environment is set for latest Cordova
  • Install Plist parser/builder using command npm install --save plist
  • Clone the repository https://github.com/predict-io/PredictIO-Cordova-Sample.git
  • Replace the API_KEY in sample project (startPredictIOTracker function in ExampleCordova/www/js/index.js file) with the API_KEY provided by predict.io.
  • Build (command-line: cordova build ios) in ExampleCordova\ folder
  • Run (command-line: cordova run ios) in ExampleCordova\ folder