question

gedu07 avatar image
gedu07 asked

ADM onRegistered never called

Hi, I been trying to make it works, but I'm running out of ideas, I can't find the cause. I call adm.startRegister() when the adm.getRegistrationId() returns null, and the onRegistered never fired. But if I call adm.getRegistrationId() for second time, I get a token and when I try to send a msg using that token the onMessage, never is called. I set the api_key on the assets folder and here is my manifest: When I send the msg with the given token, I get a 200 Thanks
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.

gedu07 avatar image
gedu07 answered
Cos on gradle I'm using a flavors, on the manifest I must to write the flavor applicationId to make it works
10 |5000

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

Ben@AWS avatar image
Ben@AWS answered
Hi Gedu, Just want to double check that you actually were able to resolve the issue you were facing. It sounds like you are using flavors and modifying your application's package name but the manifest wasn't also updated. That would absolutely cause the behavior you were seeing.
10 |5000

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

gedu07 avatar image
gedu07 answered
Yes was that, it's fixed, thanks for jumping on this
10 |5000

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