question

clare0526 avatar image
clare0526 asked

Messaging suddenly doesn't work?

Hi all, I have a ADM testing server and App created about 3 months ago. Till 3 weeks ago they still work, I could send messages through my server and receive them on my App in Emulator with no problem. But this morning when I tried to send a message again, I kept receiving response : http_code:400 ,Response:{\"reason\":\"Unregistered\". I tried to un-register and re-register my app, but this time I received an registering error: INVALID_SENDER... I didn't change anything during this 3 weeks. Does anyone knows any ADM infrastructure changed? Or there is a time limit for API key or something? Thanks.
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.

heatsea avatar image
heatsea answered
we have a same problem and any information about this situation will be very helpful. thanks in advance.
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.

heatsea avatar image
heatsea answered
problem solved. device registration id may be expired. I installed application into another kindle device and ADM push message was received successfully.
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.

clare0526 avatar image
clare0526 answered
Well, it could be expiration of registration ID, but when I tried to re-register ( call adm.startRegister(); ), with exactly same package and API key, I got "INVALID_SENDER"... I am using kindle Fire HD 8.9 emulator, and I'm sure the device is registered. The problem is still there for me.
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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Clare0526, Can you test the same app in any Kindle device? Or can you create a new Kindle AVD and see? Please let us know the result.
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.

clare0526 avatar image
clare0526 answered
Hi Sujoy: I don't have a real device, but this week I've tried recreate new AVD (kindle Fire HD 8.9") several times, still didn't get any luck. I'm sure I have done registration for those new created AVD. And Also I've double check the MD5 signature and package name (com.trend.admmessenger) are correct. The app is actually sample code from Amazon, its title is ADMMessenger5, and it's associated with the ADMSP5 security profile. It used to work, but not this week, hope you can help me out, thanks.
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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Clare0526, Thank you for writing back. I have forwarded your issue to the concerned team for further investigation. We might need additional information. I would update this thread after I hear from them.
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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Clare0526, Can you please provide some logs through ContactUs what can help us to debug the issue? It seems that InvalidSender is blocked at the device (in this case emulator) side checks of the API Key. This request does not hit our servers. A double check of the md5 used to sign the app sounds like a good bet.
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.

clare0526 avatar image
clare0526 answered
Sorry about that, this morning I just updated kindle SDK for Android API 15 (seems kindle AVD had been updated), and this issue cannot be reproduced anymore. I am not sure what's going wrong before but now I can receive what I send. I just hope this issue won't happen again.
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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Clare0526, Good to know that your issue is resolved now. Thanks.
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.