is a mobile engagement automation library for your smartphone and tablet apps. Engage users in the right time using push notifications, emails and sms, segment your user base, create geofences to trigger location based campaigns or beacons for proximity based campaigns, analyse results and measure campaign performance. StreetHawk supports both iOS and Android devices..
platforms: android,ios
$ cordova plugin add com.streethawk.plugin

Streethawk Phonegap Plugin

Streethawk phonegap plugin can be integrated in applications created using cordova phonegap. The plugin supports both Android and iOS. For detailed information and API documentation, please refer to Streethawk Phonegap documentation.

Steps to integrate Streethawk Phonegap Plugin

Assuming you have an application created using Phonegap, you can integrate Streethawk SDK by following simple steps mentioned below.

  • In terminal, browse to root folder of your cordova phonegap application

  • Add streethawk plugin by running command

cordova plugin add --variable APP_KEY=<YOUR_APPLICATIONS_APP_KEY>

Please note that, above command requires unique app_key of your application registered with Streethawk. If you dont have it , you can register you application's app_key here

  • Initialise Streethawk Add the following code at start point of your application . For example you can call streethawkinit() from index.html.
<script type="text/javascript" src="plugins/com.streethawk.plugin/www/Streethawk.js"></script>
  document.addEventListener("deviceready", onDeviceReady, false);
  function onDeviceReady() {
        var sh = cordova.require("com.streethawk.plugin.Streethawk");
  • Build and run your application for iOS by using command
cordova run iOS
  • Build and run your application for Android by using command
cordova run android

That's it!. Streethawk is integrated in your application. Please refer to Streethawk Phonegap documentation for adding more Streethawk features.