Contact Us      Sign Up      Login

To install the Plot plugin into your PhoneGap/Cordova/Ionic app only a couple of small steps have to be performed. Note that this plugin requires PhoneGap 3.0.0 or higher. This plugin supports both iOS 6 or newer, and Android 2.3 or newer.

Step 1: Get The Plugin

There are two ways to get the plugin:

i) Use config.xml

Add the following line to config.xml to add our plugin.

<gap:plugin name="cordova-plotprojects" source="npm" version="1.x" />

ii) Command line

You can add the plugin to an existing project by executing the following command:

PhoneGap:

phonegap plugin add cordova-plotprojects

Cordova/Ionic:

cordova plugin add cordova-plotprojects
Step 2: Add Configuration File

Before you can use the plugin, you have to add a configuration file in the www/folder and name the file plotconfig.json. The snippet on the right shows an example of the file. You can find your public token in the dashboard.

{
    "publicToken": "REPLACE_ME",
    "enableOnFirstRun": true
}
Step 3: Almost done!

You can initialize the Plot library using the snippet on the right.

<script type="text/javascript">// <![CDATA[
document.addEventListener("deviceready", deviceReady, true); function deviceReady() { var plot = cordova.require("cordova/plugin/plot"); plot.init(); }
// ]]></script>

You are now ready to receive your first notification. For more details, look at the extensive documentation or our Github page.

Sign Up To Download The Plugin!