Sei sulla pagina 1di 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.

Potrebbero piacerti anche