We would like to show an actionable notification with custom content to our users based on the payload which we have entered user into the management platform. Using this article you can see how to set an actionable notification with a custom payload and how to handle it.
Add content in payload of your campaign
Select a campaign first.
Select the Advanced option.
Enter your custom payload contents
Save the Campaign.
“onEnter” is the object which contains the content for one actionable notification.
“onEnter” object will contain contents for any actions which have triggerType “On Enter”
“onExit” object will contain contents for any actions which have triggerType “On Exit”
“confirmationAction” can have one of following 2 options : open, share
open : open the URL which is given in campaign.
share : share the URL, which is given in campaign, on Facebook or elsewhere.
“actInForeground” is a boolean value
if it’s true, the app will come to the foreground and do its required actions when the user taps the ‘ok’ button or taps directly on the notification. Otherwise the app will do the specified “confirmationAction” in the background.
The following 3 language objects (“de”, “en”, “ko”) are localised strings for notification. Of course you can add more languages with ISO 639-1 language codes.
“okButtonTitle” : ok button title on notification.
“cancelButtonTitle” : cancel button title on notification.
“title”: subject on notification
“message” : message on notification
Ex : custom payload
Get content of payload from SBCampaignAction
To get SBMCampaignAction, you need to subscribe “SBEventPerformAction” with Tolo.