question

Amokrane CHENTIR avatar image
Amokrane CHENTIR asked

AUTHENTICATION_FAILED error when registering ADM

Hi, I am trying to integrate ADM with an Android app and I have followed all the steps mentioned in the documentation and made sure that I was using the correct API key (that corresponds to the signature of my apk). But when I try to register with: adm.startRegister(); instead of receiving the registrationID, I receive an AUTHENTICATION_FAILED message. Any idea what I might be doing wrong? Thank you
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.

Amokrane CHENTIR avatar image
Amokrane CHENTIR answered
Never mind I figured what I was doing wrong, it's working now.
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
10 |5000

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

JJOOp avatar image
JJOOp answered
Hi, We've just started to get this problem in our app, what is the reason for this error? Previously it was working just fine. We haven't changed the API key nor the signature. Thanks.
10 |5000

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

adm-support avatar image
adm-support answered
ADM requires an associated Amazon user, so AUTHENTICATION_FAILED is returned when there is no user registered to that Fire device. Fire device registration can be found in the settings menu. See: https://developer.amazon.com/public/binaries/content/assets/javadoc/device-messaging-api/reference/com/amazon/device/messaging/admconstants.html#ERROR_AUTHENTICATION_FAILED
10 |5000

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

JJOOp avatar image
JJOOp answered
That was it, thanks a lot!
10 |5000

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