🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

streethawk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streethawk

StreetHawk is a mobile engagement automation library for your smartphone and tablet apps. Engage users in the right time using push messaging, emails and sms, segment your user base, create geofences to trigger location based campaigns or ibeacons for pr

1.6.6
latest
Source
npm
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

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 https://github.com/streethawkphonegap/StreethawkPlugin.git --variable APP_KEY=<YOUR_APPLICATIONS_APP_KEY> --variable URL_SCHEME=<URL_SHEME_OF_APP>

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");
        sh.shSetiTunesId('<Itunesid>');
        sh.shSetGcmSenderId('<SenderId>');
        sh.streethawkinit();
}
  • 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.

Keywords

push

FAQs

Package last updated on 15 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts