cancel
Showing results for 
Search instead for 
Did you mean: 

Android: Update GCM registration id using REST

Former Member
0 Kudos

Hi,

I am trying to update the GCM registration id to SMP server by following REST method. but it's not getting updated.

PUT "https://{host name}/odata/applications/latest/{appid}/Connections({'mSmpAppConnId'})"

HTTP Headers:

"Content-Type" = "application/xml"

"XHTTP-METHOD" = "MERGE"

"Cookie"="cookies"

Body:   <entry xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns="http://www.w3.org/2005/Atom"><content type="application/xml"><m:properties><d:AndroidGcmRegistrationId>APA91bE8bWZw9_aXfv2JfeWL-gRjmxvzfuWYLCp-XaiqNt24dCjVZdz4emD8CeIqtlbTkErBauaJIXXXXXXXXXXXXXXXXXXXXX</d:AndroidGcmRegistrationId></m:properties></content></entry>

Getting 404 error ...

please help me in updating the gcm registartion id to backend using REST method.

Accepted Solutions (0)

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Hi Sukesh,

Is there any specific reason on why you are not using Android/Kapsel SDK instead of using REST API?

If you use Android/Kapsel SDK you do not need to manually take care of this step.

Regards, Midhun

SAP Technology RIG