Use the Plot library for Location Based Notifications in your Cordova/PhoneGap app.
Floating Market B.V.1.8.05
platforms: android,ios
$ cordova plugin add com.plotprojects.cordova

Plot PhoneGap Plugin

Install Plot into your PhoneGap/Cordova app quickly

Get location based notifications in your PhoneGap app! Now also experimental support for iBeacon in the iOS version.

Supported platforms

This plugins requires PhoneGap 3.0.0 or higher. This plugins supports both IOS and Android.


You can add the plugin to an existing project by executing the following command: phonegap local plugin add or cordova plugin add in case you are using Cordova.

The following snippet has to be added to the first page that is loaded to initialze Plot:

<script type="text/javascript">
document.addEventListener("deviceready", deviceReady, true);
function deviceReady() {
  var plot = cordova.require("cordova/plugin/plot");
  var config = plot.exampleConfiguration;
  config.publicKey = "REPLACE_ME"; //put your public key here

You can obtain the public key at:

To intercept notifications before they are shown you can use the filterCallback. This feature is only available on IOS.

//Optional, by default all notifications are sent:
plot.filterCallback = function(notifications) {
  for (var i = 0; i < notifications.length; i++) {
    notifications[i].message = "NewMessage";
    notifications[i].data = "";
    return notifications;

To change the action when a notification has been received you can use the notificationHandler. This feature is available both on IOS and Android.

//Optional, by default the data is treated as URL and opened in a separate application:
plot.notificationHandler = function(notification, data) {

More information


Android plugin:

IOS plugin:


The source files included in the repository are released under the Apache License, Version 2.0.