ADM Messages Sometimes Take Up To 10 Minutes or More to Arrive
Hello, we are currently working on releasing our iCam mobile application (
http://skjm.com/icam/) to the Amazon App Store. iCam allows you to remotely monitor multiple live video and audio webcam feeds from your mobile phone or tablet. One key feature of iCam is the notifications that it receives from the computer application monitoring the video feed when motion is detected, as demonstrated in this video:
http://www.youtube.com/watch?v=OCpA-A8Lcgc&t=0m55s On iOS and Google Play, (where iCam is currently available,) the notifications consistently arrive within about 5 seconds or so, regardless of the device's state. (It could be asleep, running another app, on a phone call, etc.) On our test Second-Generation Kindle Fire, however, the notifications do not arrive consistently at all. Sometimes the notifications arrive within the same 5 second window as iOS and Android, but more often than not they take 2 minutes, 5 minutes, or 10 minutes or more to arrive. Additionally, it seems as if the notifications do not generally arrive if the device is asleep. Once the device is woken up and unlocked, the notifications will then arrive. If the device is already awake and the notifications have not yet arrived, we can cause them to arrive by tapping the Kindle Fire's Sync menu button, as mentioned in this forum thread:
https://forums.developer.amazon.com/forums/thread.jspa?threadID=1186 Our question is this: Are these delays normal with ADM? Due to the nature of our application, we would like to see the ADM messages arrive within approximately 5 seconds, similar to iOS and Google Play, even if the device is asleep or locked. We would just like some clarification as to whether or not that is currently possible with ADM. Thanks!
Hi SKJM Support, We have another post regarding the same issue:
https://forums.developer.amazon.com/forums/thread.jspa?threadID=1556 This is not normal behavior, but we have seen this happen when the device is behind a corporate firewall. There is a persistent connection keep with the device to send down push messages, but some firewalls will block this persistent connection. Could you please confirm whether you are inside a corporate firewall or not?
Additionally, the same issue occurs when replacing the Apple AirPort Extreme router with a D-Link DIR-601, a Netgear WNR1000, or a Belkin F6D4230-4. We also tried connecting the Second Generation Kindle Fire to a Verizon iPhone 5 acting as a Personal Hotspot and the delay still occurred.
Hi, Thank you for the details. Can you capture the ADB logs during the time you are waiting for the message to arrive in the device and send to my mail id? I have just sent you a mail to your registered mail id.
E-mail with adb logcat log has been sent. The test scenario we performed was: 1. Powered off the device and then powered it back on at around 8:18 am. 2. Triggered motion with the iCamSource at 8:20:00 am ... Motion Detection ADM message arrived approximately 5 seconds later. (We believe that the message arrived within an acceptable amount of time because it was not sitting idle.) 3. Let the device sit idle until 8:30 am ... Triggered motion with the iCamSource again at 8:30 am ... No message was received by the Kindle Fire. 4. At 9:00 am no message had still been received. 5. Woke the Kindle Fire at 9:03:00 am by pressing the power button. The screen awoke and the lock screen was displayed. 6. Message arrived approximately 10 seconds after Kindle Fire was woken up. Please let me know if you have any questions or require any further information. Thank you.