Methods and Arguments
Some actions and functionality within the Hurree dashboard and user notifications are controlled using SDK methods. Each is listed below, along with the relevant arguments.
Each method requires its own successCallback and errorCallback function.
|Logging in successfully||setApplicationAndUserKeys()|
|Sending a push notification||showPushNotificationView()|
|Displaying custom views||notificationFromHurree()|
|Logging all system events||logApplicationEvents()|
|Logging all system purchase events||logPurchaseEvents()|
|Switching between users on one device||changeUser()|
|Logging all logout events||logoutSDK()|
This section outlines how to add the SDK methods and data arguments to your project's controllers (.js files).
Depending on how you want the Hurree functionality to work you can decide where each method is called, though we have made some suggestions.