Skip to Content
0
May 19, 2020 at 11:07 AM

Sap Mobile services - rest APIs for push notification - getting 200 status code instead of 201

239 Views Last edit May 25, 2020 at 01:36 PM 2 rev

Hi team,

I have created hybrid mobile app and registered with sap mobile services. I have enabled push notification capabitlities aswell.

Using mobile cockpit page i am able to send push notifications to registered devices as I have added my user name as notification user in mobile services.

But I am not able to trigger push using rest APIs provided in the below SAP document.

https://help.sap.com/viewer/33c4b62fdc174d89a47d4baee3ced08a/Cloud/en-US/aaec2dbe78ec4fc08ef0a605a899e3dd.html

When I run the APIs in rest client I am getting 200 as status code in the response instead of 201.

I am passing two headers content type and authorization with proper values while triggering the API.

Please throw some light here.

Thanks in Advance