Two devices

Hi
I just finished to define my tablet for vera alert in addition to my galaxy s3.
I have a big problem now.
When the vera sends message - it can take 1 minute for the first device to get the message.
The second device getting the message after 5 (!) minutes.

What can be the problem ?

You may need to check the settings for your Google Account …
Delivery is provided by Google using the same service it uses to indicate updates to apps etc.

Are you on Wifi ?
If yes, try to cycle the Wifi On/Off

If no, try rebooting your phone.

What do you mean cycle the Wifi On/Off ?
Where do I do that ?

Thanks

ON YOUR Phone …
Turn ON/OFF airplane mode if you do not know how to change the wifi mode.

You just meant to close and open the WiFi?
Both devices after reboot…
Both in WiFi.
I cant get any answer to this problem.

The thing is that there is connection between the 2 devices - randomly only one device will get the message immediately and the second one will be delayed. In each time other device will get first the message.

:-\

Do you have TWO different Vera Mobile IDS ? One for each phone ?

Yes

It’s all up to google services, your internet connection and your device. I can send an email to 5 people and not all will recive it at the same times. Usually close but never the same. And different times different devices might be first.

What Richard is saying is that he can’t do much to control that. VA sends the request and VA on your device displays them when it gets them. In between is google services and the Internet both out of his control.

When you send an alert the following happens:

  1. Vera Alert Plugin sends a message to VeraAlertsExchange — A Web Server hosted by Google running my code:
    http://veraalertsexchange.appspot.com/

  2. The VeraAlertsExchange sends the message to the Google Play Services for Delivery to you phone. (Converts the VeraAlertID to a GoogleServicesID)
    (There are reasons why the plugin does not talk to Google Play Services Directly mostly because the VeraMobil ID is constant … but the ID to Google Services
    changes, the VeraAlertExchange manages the protocol to keep these in Sync). It uses Google Libraries to support this, which are not provided in LUA.

  3. The Google Play Services queues/forwards the message to your phone.
    This part has a lot to do with how Google Play Services is installed, the Version (a function of the Android Version), your carrier, network hangs, application set used …

Google throttles data to your phone so the more data that Google Plays Services has to deal with, the slower the messages get (It will batch the data if you make a lot of requests). (NOTE: Vera Alerts is only one of many apps contending for these resources, the Play Store is another app checking for updates, all of the Google Apps, many non google apps).

Step 2 is where my code happen and this is completed within a few 100 ms from the time the request is made (i.e. the HTTP connection from step 1 is established).
I normally get messages in about 1-3 seconds to my 3 Android Devices (Samsung S4, Samsung S2, Google Nexus) … there is no special code to give me priority!

Hi
Thanks for the detailed answer.

Can you verify that steps 1 & 2 really happens immediately for my 2 devices ?
I have strongly filling that the 2 devices are influence one each other on that problem.

Sends some messages.
PM me the time GMT that you sent them … and the VeraMobil ID.
Make sure the device you use to as a reference time is relatively accurate.

I will extract the info from the Log files to see what time.