0% found this document useful (0 votes)
47 views4 pages

Hurree Phonegap SDK Integration

The document provides steps to integrate the Hurree mobile SDK into hybrid mobile applications built with Phonegap for iOS and Android. It outlines installing the Hurree plugin, then calling various SDK methods like setApplicationAndUserKeys() to pass app and user details, showPushNotificationView() to display notifications, and log events and purchases. Parameters and data types required by each method are also described.

Uploaded by

anikbiswas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views4 pages

Hurree Phonegap SDK Integration

The document provides steps to integrate the Hurree mobile SDK into hybrid mobile applications built with Phonegap for iOS and Android. It outlines installing the Hurree plugin, then calling various SDK methods like setApplicationAndUserKeys() to pass app and user details, showPushNotificationView() to display notifications, and log events and purchases. Parameters and data types required by each method are also described.

Uploaded by

anikbiswas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Hurree Phonegap Initial SDK Setup for iOS and Android:

Description:

Hurree proffers broad solution to developers community in developing custom mobile apps for in
app messaging. This is under campaign management segment for hybrid mobile apps development
using Phonegap for iOS and Android.

Mobile SDK: Once installed, you can integrate HURREE mobile SDK into your hybrid mobile
applications using phonegap. This in turn, provides extensive in app messaging experiences for
campaign management and analytics.

Phonegap SDK Integration for iOS and Android:

Given below are the steps, to integrate Phonegap SDK into your application code for Android and
iOS apps.

Step 1.

 Type and run the command, below, in your Cordova project to install the
HURREE plugin. This Plugin is available for iOS and Android platforms only.

cordova plugin add cordova-plugin-hurresdk

Step 2.

 Given below are methods and parameters to access HURREE plugin.

A. window.plugins.hurreSDK.setApplicationAndUserKeys(successCallback,errorCallba
ck,Array)

Param Type :- Array.

Data reuquired in Array :- 0: App Group Key (String)

1: App Key (String)

2: User Id (String)

3: Device Token (String)


4: Timer In Minutes (String)

5: First Name (String)

6: Last Name (String)

7: Phone Number (String)

8: Email (String)

9: Image Url (String)

10: Gender (String)

11: Date Of Birth (String)

B. window.plugins.hurreSDK.showPushNotificationView(successCallback,errorCallbac
k,Array)
Param Type :- Array.

Data reuquired in Array :- 0: Notification Payload (JSONObject)

Ex:- {

"aps": {

"alert": "joetheman",

"sound": "default"

},

"message": "Some custom message for your app",

"id": 1234

1: Notification Icon (Integer)

C. window.plugins.hurreSDK.notificationFromHurree(successCallback,errorCallback,A
rray)
Param Type :- Array.
Data reuquired in Array :- 0: Notification Payload (JSONObject)

D. window.plugins.hurreSDK.logApplicationEvents(successCallback,errorCallback,Arr
ay)
Param Type :- Array.

Data reuquired in Array :- 0: Log (String)

1: Event Name (String)

2: Event Type (String)

E. window.plugins.hurreSDK.logPurchaseEvents(successCallback,errorCallback,Array)
Param Type :- Array.

Data reuquired in Array :- 0: Product Identifier (String)

1: Currency Code (String)

2: Price (String)

3: Quantity (Integer)

F. window.plugins.hurreSDK.changeUser(successCallback,errorCallback,Array)
Param Type :- Array.

Data reuquired in Array :- 0: User Id (String)

1: Device Token (String)

2: Timer In Minutes (Integer)

3: First Name (String)

4: Last Name (String)

5: Phone Number (String)

6: Email (String)

7: Image URL (String)


8: Gender (String)

9: Date Of Birth (String)

G. window.plugins.hurreSDK.logoutSDK()

Param :- Not Required.

You might also like