Cordova Plugin for the ForeSee Native SDK
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
out
scripts
src
www
README.md
build.gradle
package-lock.json
package.json
plugin.xml

README.md

ForeSee Cordova Plugin

Requirements

  • Cordova-android: 6.2.3+
  • Cordova-ios: 4.4.0+
  • Android: 19+
  • iOS: 9.0+
  • ForeSee SDK
    • iOS 5.0.2
    • Android 5.0.0

Setting up the plugin

To set up the plugin in your app, follow these instructions

  1. Add foresee_configuration.json file in your www folder. For more information please check Configuration Options

  2. Add the ForeSee plugin to your project

    cordova plugin add https://github.com/foreseecode/foresee-sdk-cordova-plugin
    

    This will automatically add compile "com.foresee.sdk:sdk:+" to your build.gradle file. It will also copy the foresee_configuration.json file to platform/ios and platform/android if they exist

  3. Within the deviceready event handler initialize the ForeSee SDK by invoking

    cordova.plugins.ForeSeeAPI.start(this.onSuccess, this.onFailure);
    
  4. Now you can use cordova.plugins.ForeSeeAPI in your JavaScript code for example:

    cordova.plugins.ForeSeeAPI.checkEligibility(this.onSuccess, this.onFailure);
    
  5. For all supported methods please check the API docs included in this package, or online here. For general information about the ForeSee SDK, please see the ForeSee Developer Portal.

License

Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0