Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2175

Re: How to customize kapsel push notification shown when app is running in background?

$
0
0

Hi Virinchy,


I think about a formatter that can be used with the kapsel push plugin.


This formatter should be responsible for formatting incoming notification messages sent with SMP before displaying it in the notification bar when application is running in the background.


So when sending notification in form of {alert: ...., data: .....} (as described in Push Notification API Scenarios - REST API Application Development - SAP Library)


such formatter should look like this:

function formatter(notificationMessageFromSMP) {     var messageToDisplayInTheNotificationBarWhenAppInBackground = {          title: notificationMessageFromSMP.alert,          message: notificationMessageFromSMP.data     };     return messageToDisplayInTheNotificationBarWhenAppInBackground;
}

Viewing all articles
Browse latest Browse all 2175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>