SAPUI5 hybrid app - Add custom icon to push notification

641 Views Asked by At

Is it possible to add a custom icon to push notification when using kapsel-plugin-push?

I have read blogs, like:

and tried to add icon property to gcmNotification. Icon appeared in notification, but after that, there was no sound when notification arrives (I have fixed that issue by adding sound property). Also notification payload is not applicable (data in notification was not processed by application).

If I remove gcmNotification, notification sound is working as well as data in notification payload.


I am sending requests to SCPms via Postman. Here is an example of

{
  "alert": "Test alert",
  "data": "{\"TSLASTTEMP\":\"Sat Mar 31 2018 18:09:02\",\"LASTTEMP\":\"35\", \"NUMBER\": \"1231244234/2a\"}",
  "sound": "default",
  "gcmNotification": {
    "icon": "sap",
    "color": "blue"
  }
}
0

There are 0 best solutions below