question

agauledev avatar image
agauledev asked

onRegistrationError SERVICE_NOT_AVAILABLE

Hi: I'm trying to implement the device message system but I keep getting an error during the registration process. I got a SERVICE_NOT_AVAILABLE error. What does it mean? I get the following on the console: [i]06-17 14:22:20.021: E/ActivityThread(18294): Service com.amazon.device.messaging.PrivateADMRegistrationService has leaked ServiceConnection com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$CredentialManagerServiceConnection@41672ea0 that was originally bound here 06-17 14:22:20.021: E/ActivityThread(18294): android.app.ServiceConnectionLeaked: Service com.amazon.device.messaging.PrivateADMRegistrationService has leaked ServiceConnection com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$CredentialManagerServiceConnection@41672ea0 that was originally bound here 06-17 14:22:20.021: E/ActivityThread(18294): at android.app.LoadedApk$ServiceDispatcher. (LoadedApk.java:1024) 06-17 14:22:20.021: E/ActivityThread(18294): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:918) 06-17 14:22:20.021: E/ActivityThread(18294): at android.app.ContextImpl.bindService(ContextImpl.java:1156) 06-17 14:22:20.021: E/ActivityThread(18294): at android.content.ContextWrapper.bindService(ContextWrapper.java:387) 06-17 14:22:20.021: E/ActivityThread(18294): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager.synBindService(AmazonCredentialManager.java:409) 06-17 14:22:20.021: E/ActivityThread(18294): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager.access$2(AmazonCredentialManager.java:375) 06-17 14:22:20.021: E/ActivityThread(18294): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$BindAndDoTask.doInBackground(AmazonCredentialManager.java:527) 06-17 14:22:20.021: E/ActivityThread(18294): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$BindAndDoTask.doInBackground(AmazonCredentialManager.java:1) 06-17 14:22:20.021: E/ActivityThread(18294): at com.amazon.identity.auth.device.authorization.api.AbstractCredentialManagerAsyncTask.doInBackground(AbstractCredentialManagerAsyncTask.java:1) 06-17 14:22:20.021: E/ActivityThread(18294): at android.os.AsyncTask$2.call(AsyncTask.java:264) 06-17 14:22:20.021: E/ActivityThread(18294): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 06-17 14:22:20.021: E/ActivityThread(18294): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 06-17 14:22:20.021: E/ActivityThread(18294): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 06-17 14:22:20.021: E/ActivityThread(18294): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 06-17 14:22:20.021: E/ActivityThread(18294): at java.lang.Thread.run(Thread.java:856)[/i] Anybody knows what the problem is?
amazon device messaging
10 |5000 characters needed characters left characters exceeded

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

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi agauledev, Did you enable ADM for the app? Go to "Apps & Services > My Apps > Device Messaging" to enable ADM. If you do not enable ADM, any server requests to send messages to the app will fail.
10 |5000 characters needed characters left characters exceeded

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