The repository hosts Phonegap plugin of StreetHawk SDK's Geofence module. The plugin is required if you wish to run campaigns based on your application user entering or exiting a geofence.
Add Geofence plugin by running the below command.
$ cd <APPLICATION_DIRECTORY>
$ cordova plugin add streethawkgeofence
Note that Geofence plugin requires StreetHawk Analytics plugin which can be added by running the below mentioned command
cordova plugin add streethawkanalytics --variable APP_KEY=<YOUR_APPLICATIONS_APP_KEY> --variable URL_SCHEME=<URL_SCHEME_OF_APP>
Replace YOUR_APPLICATIONS_APP_KEY with app_key registered with StreetHawk for your application and URL_SCHEME_OF_APP with deeplinking scheme of your application.
Click here for detailed documentation of StreetHawk's Geofence plugin.