question

kirich1409 avatar image
kirich1409 asked

How I can stop retry registration of ADM when it fail?

In documentation about ADMConstant.ERROR_AUTHENTICATION_FAILED "Passed to onRegistrationError(String) when the ADM service is unavailable. If you are using ADMMessageHandlerBase to receive your messages, you should not retry, as it has already done so." How I can stop retry registration of ADM when ADMConstant.ERROR_AUTHENTICATION_FAILED occur?
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.

1 Answer

Bipin@Amazon avatar image
Bipin@Amazon answered
Please note that you should not call explicitly to adm.startRegister() in case ERROR_AUTHENTICATION_FAILED is passed to onRegistrationError()
10 |5000

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