In-App Notifications

Configure target rules for in-app notifications.

InApp Notifications include both Banners and Surveys. These are displayed based on the ionic app page. You can pass an optional callback function as the last parameter if you want to get responses from banners and survey clicks.

NotifyVisitors.show((JSONObject)tokens, (JSONObject)customObjects, (String)fragmentName, (optional)callback);

Example:-

NotifyVisitors.show(null,null,null, function(callback){
 alert("show response : " + callback); 
 });               
//fragmentName:- In Ionic or Cordova you can pass this parameters as null

DYNAMIC TOKENS (JSON Object)

Dynamic tokens are used to show personalized content in Notification messages in real time.

var customRules = { "category" : "flowers" };
var dynamicTokens = { "name" : "ravi", "age" : 49 };

NotifyVisitors.show(dynamicTokens, customRules, null);

CUSTOM RULES (JSON Object)

This data can be used in configuring targeting rules for the Notifications.

var customRules = { "category" : "flowers" };
var dynamicTokens = { "name" : "ravi", "age" : 49 };

NotifyVisitors.show(dynamicTokens, customRules, null);