question

genllc avatar image
genllc asked

onRegistrationError INVALID_SENDER

Hi, I am trying to implement ADM for one of my existing app which is already hosted in Amazon Store by following this link ( https://developer.amazon.com/public/apis/engage/device-messaging/tech-docs/04-integrating-your-app-with-adm). I made all the necessary changes, such as - Generating the API Key and placing that api key under assets folder of my project with file name api_key.txt. However, while running the app I get error log as- ADM Error INVALID_SENDER - Unable to parse API Key for package name. Did you forget to embed it? Even, I observed it never goes to onRegistered() method resulting I am not able to get registrationID. Please help me to overcome from this issue. [b]Note:[/b]For generating API key I am already using MD5 signature for my keystore file.
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.

Nick Gardner avatar image
Nick Gardner answered
Hi, Have you made sure that you are using the correct key? Many environments use different keys for debug and release keys. Thanks, Nick
10 |5000

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

genllc avatar image
genllc answered
Hi Nick, I am using release key only.
10 |5000

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

Nick Gardner avatar image
Nick Gardner answered
Hi, You shouldn't need to use release key for the production application, you should only need to use the api key text file for the debug keys. -Nick
10 |5000

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