cancel
Showing results for 
Search instead for 
Did you mean: 

API to retrieve tokens of User Registrations in Native/Hybrid application in Mobile Service (SCP)

former_member220397
Participant
0 Kudos

Hello experts,

First of all, I hope I'm clear enough.

In "Mobile Service for Development and Operations" on SCP, we have a custom native/hybrid application. In this application, we have a list of user registrations with tokens (APNS device token, Android GCM Registration ID, BlackBerry Device Pin).

We would like to retrieve these tokens from our SAP ECC back-end but I did not find any suitable API I could use. I checked the "APIs" tab of the application but none of them seems to relevant. Do you know if there is one? If yes, where can I find it? If no, do you know an other way to get this tokens from an other SAP system (in our case SAP ECC)?

Thank you in advance for your help.

Regards,

Maurin

former_member220397
Participant
0 Kudos

Dear experts,

Has anyone ever faced this problem? If so, how did you solve it?

Thank you in advance for any help.

Regards,

Maurin

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Maurin Ferraud-Ciandet

We would like to retrieve these tokens from our SAP ECC back-end 

I am not sure what exactly you are looking for ?

You will receive Android GCM Registration ID, APNS Device Token etc once app is registered with Push provider respectively (of course, after user is on-boarded on SAP CP Mobile Services). These values are stored in Mobile Services for that particular user registration and can be retrieved by making a GET call to application on-boarding URL

e.g. https://hcpms-pxxxxtrial.hanatrial.ondemand.com/odata/applications/v4/com.sap.demo/Connections('appid')

Header:

X-SMP-APPCID : appid


Regards

JK

former_member220397
Participant
0 Kudos

Hello JK,

Thank you for your very quick answer.

Indeed, ideally, we would like to make a GET with the user name of the user registration.

When I call the following URL with registration ID as appid, it is working but only for registration ID linked to my user name. For all others registrations ID, I have a 403 error (The registered user for application connection doesn't match the user). Have I missed something? And do you know if it is possible to filter on field "User Name"?


Thank you in advance for your help.


Regards,

Maurin

former_member220397
Participant
0 Kudos

Dear experts,

Do you know if there is another API to get tokens with only a filter on email addresses?

Thank you in advance for your help.

Best regards.

Maurin