Skip to Content
0
Mar 28, 2019 at 12:27 PM

Android notification types and API payload

75 Views

Hi all,

I am using notification API provided by mobile service to send notification to Android device. The cloud message service provider is Firebase.

There are two types of notification: Misc and push-channel.

If API payload looks like {"alert":"Dear Customer", "data":"test","sound": ""}, notification received is push-channel.

If API payload looks like {"alert":"Dear Customer", "data":"test","sound": "default"}, notification received is MISC.

These two kinds of notification also have different icons and I cannot see the alert content if type is MISC.

I assumed that the property "sound" would affect how the notification would be sent, for example, changing the payload format of Firebase. Does anyone know something about that?

Attachments

nt.png (9.6 kB)