Skip to Content

mobile service send notification payload parameter issue

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?

noti-json.jpg (55.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 22 at 06:17 PM

    Can you try sending the payload with the following body

    {

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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 25 at 02:54 AM

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

    Add comment
    10|10000 characters needed characters exceeded