question

RajaReddy avatar image
RajaReddy asked

getting InvalidRegistrationId, why ?

Hi, i am able to get registration ID from ADM push notifications, but if i try to send message by using this registration Id. getting this error string(50) "{"message":null,"reason":"InvalidRegistrationId"} " {"message":null,"reason":"InvalidRegistrationId"} please solve this error .
amazon device messaging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Generally InvalidRegistrationId happens while sending the message to a particular Registration ID when the API key associated with your security profile and API key in your assets folder do not match. An API key is associated with a security profile and the security profile is associated with a client id and client secret. The client id and developer secret are used to generate authToken which are used to send the message to device. When the security profile of given client id and developer secret in the sever end is not the same as the associated API key given in client to generate device registration id, InvalidRegistrationId will be encountered during pushing the message.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

RajaReddy avatar image
RajaReddy answered
Yes, i have replaced api_key with proper one, now it's working fine. i am able to get Registration Key properly.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.