cancel
Showing results for 
Search instead for 
Did you mean: 

mobile service send notification payload parameter issue

raffinkira
Participant
0 Kudos

Hi all,

I am working with SAP mobile service and FCM to push notification to Android devices.

I have tried two payloads, one is with "sound" and the other is not.

{"alert": "hello world", "sound": "default"}

{"alert": "hello world"}

Then, I have received two notifications, the one with "sound" setting is in black line block, which is not correct.

The one in red line block is correct, it's from the notification payload without setting "sound".

My question is does parameter "sound" matter?

Anyone helps?

Accepted Solutions (0)

Answers (2)

Answers (2)

raffinkira
Participant
0 Kudos

It would return with a code 400, I think it is because of the wrong format.

former_member320731
Discoverer
0 Kudos

Can you try sending the payload with the following body

{

"alert": "TravelAgencies",
"data": "{\"message\": \"Notification to all devices registered to application\", \"sound\": \"default\"}"
}