Categories: Connecting to networks and devices :

Push notifications delayed, Hearbeat Interval not reliable

Showing 1-172 of 172 messages
Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/11/13 1:58 PM
Old thread : https://productforums.google.com/forum/#!msg/mobile/X0j2BgCVQjI/jkpUW0aI3uIJ
Google response by Paul: "Thanks for the reports everyone. We are aware of this issue and investigating."

Android push notifications works through one TCP connection on the port 5228 between the phone and google servers. This connection is established when the phone connect to a network. All android push apps (gmail, whatsapp, hangouts, etc.) use Google Cloud Messaging (GCM) to send and receive push notifications thought that connection.
 
By definition a TCP connection does not have a timeout. But in the real world, wifi routers and mobile carriers have some rules to limit the number of opened tcp connections. So they usually close/kill what they think to be an inactive connection after some times that no packets are transmitted. For example my wifi router kill connections after 300 seconds (5 minutes) of inactivity (no packets on the tcp connection).

What happens is that, when I don't have push notifications for 5 minutes, the router kill the connection because is inactive and android is not able (since the router didn't sent any ack to the phone) to intercept that the connection has been closed because of a tcp idle timeout rule. From that moment the GCM connection is a dead connection and no push notifications are received until the connection is re-established (switch wifi/mobile connection off and on, or an heartbeat is sent, see below).

Android have a mechanism to send a little network packet (called heartbeat) every x minutes to avoid the tcp connection timeout and check if the connection is alive; that is a wide common and working practice. If the connection is not alive, the GCM connection is re-established and previously  notifications and new one come again.

What is the problem? The problem is that the heartbeat is sent with the following intervals: 
- every 28 minutes on mobile connection, 2g/3g/4g;
- every 15 minutes on wifi;
(You can see those values by dialing on the phone *#*#8255#*#* (with new play services you can dial *#*#426#*#* if previous don't work) . Those values are updated remotely through Google Checking mechanism, so if google want, they can easily update those values and all android devices will have new values in about 24 hours.)

Those are to much high values for most of the users in the world. Mobile carriers close inactive tcp connections much sooner, same as wifi routers (most wifi routers kill inactive connections after 5 minutes!). This cause delayed push notifications!

Please implement a dynamic mechanism to set the right heartbeat interval value depending on the user connection, or set a low heartbeat interval like 2 minutes! I did a lot of test by changing the heartbeat intervals, battery is not impacted to much at all (if you have root search Push Notifications Fixer on play store).

Lot android users think that push notifications are broken because of this problem, please take care of this, short the heartbeat interval. It is so annoying! This problem exists since the introduction of push notifications, android 2.2, till as currently android kitkat 4.4.2.

Note that not all users are affected by this, only users with some routers or some carriers with strict policy to kill inactive tcp connections are affected. All carriers/routers kill inactive connections after some time, the problem are the carriers/routers that kills connection after so short time.

Also some of you may have a different problem, like wifi/3g completely drop while the screen is off, that's an other problem.

As last note even iPhone users have push notifications delayed in some cases as well, so people don't complain about that.

Because of this issue, some apps developer start to use their own separated connection to mitigate, or sometimes make worse, the problem (see whatsapp, they have a connection on the port 5222 that go on timeout as well..).

tag: push notification delay, push notifications delay, push notification delayed
Re: Push notifications delayed, Hearbeat Interval not reliable chrismalla 9/12/13 10:05 AM
Almost embarrassing how much you care about power users that provide you with great piece of information. My carrier (Tele2 Sweden) is presumably killing my connection because of this issue. Receiving calls in Hangouts is not working and notifications are laaaaate.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/12/13 10:10 AM
Thanks. Write that, cost me a lot also because I'm not native english. :)
To better clarify, all carriers kill inactive connections after some time, but in particular push notifications get delayed when some carriers close those connections after so short time (when this time is shorten that the heartbeat interval).

Even if it's partially a carriers/routers problem, google have to make sure that push notifications are on time for every one. 
Re: Push notifications delayed, Hearbeat Interval not reliable dqak 9/13/13 1:49 AM
The same problem in my carrier PLAY Poland. They say that they can't fix it, it's google fault.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/19/13 5:08 AM
Google any update on the situation?
Re: Push notifications delayed, Hearbeat Interval not reliable Nitzan Ben Shitrit 9/27/13 3:26 AM
why do you need an update? what's the "rush"? it's almost as if you DON'T get your IMPORTANT push notifications on time.. oh wait, you don't..
but seriously, why do you need an update? it's obvious they don't care about you, me, and the rest of the customers suffering from this.
here's the thoughts of Google's Android HQ employees "push notifications? it can wait, not that important right now, we need to plan a commercial with KitKat, come on workers, you know our priority"
honestly, I had never given Windows Phone a chance, seems it's time I do.
Push notifications delayed, Hearbeat Interval not reliable Kaan Ünal 9/28/13 5:41 AM
If this issue about servers why galaxy nexus not affected?
Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/28/13 5:47 AM
@Kaan read first post again. The issue is client side, and affect all phones.

If YOU are not affected, as written on the first post, it's because your router/carrier are good ones.

OR if you have delays on 1 phone and not on an other phone, then it's an other issue you are having, like  wifi disconnect while screen off (ddevice specific).

Push notifications delayed, Hearbeat Interval not reliable Kaan Ünal 9/28/13 5:53 AM
I understand. I didn't think so Google can handle this problem. In my opinion they don't care. They only say "thanks for feedback."
Push notifications delayed, Hearbeat Interval not reliable Federico Rossi 9/29/13 9:40 AM
Ciao...  Ho le stesso problema...  Non funziona a schermo spento...  O almeno a volte!!


Fixareeee

Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 10/4/13 6:16 PM
We VoIP people have dealing with router mapping dropped problem for many years. One trick to keep the connect alive is keep pinging the server. It uses very little battery in WIFI mode.

BTW. No one beats BlackBerry in push. 
Re: Push notifications delayed, Hearbeat Interval not reliable Matthias Forcher 10/6/13 3:25 AM
Google you should really fix this, especially Hangouts suffers a lot from this.
Re: Push notifications delayed, Hearbeat Interval not reliable Kendall Martin 10/6/13 11:01 AM
Google, please fix the push notification delay issue.
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 10/14/13 7:24 PM
You guy can program around this. Push the notification. If you don't get a ACK from your app running on the phone in say 10 seconds, send a SMS to wait up your app waits and retrieve the message from the server instead. When the app finally receive the message, drop it.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 10/18/13 5:17 AM
Does anyone from google read this forum???
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 10/18/13 6:12 AM
I guess not. This forum is supposed to get us help each other. 
BTW. This is not a google problem. It has more to do with network routers timing out and deleting the dynamic network translation map.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 10/18/13 6:22 AM
Yeah, but routers can't have unlimited timeout..So google should take care of that by shortening the heartbeat interval..It doesn't seems complex.

And those forums should be read by google as well
Re: Push notifications delayed, Hearbeat Interval not reliable Rene Dohan 10/20/13 12:41 PM
haha ,  send sms to solve push message problem :) 
Re: Push notifications delayed, Hearbeat Interval not reliable Garrett Hazlett 11/4/13 8:27 AM
Same problem, started about 2 - 3 weeks ago on my SGS3 and have missed some very important (family and business) notifications when at at home on WiFi because of this. They obviously changed the heartbeat time frame  recently because I have not changed my phone nor setup. This does need to be addressed google...
Re: Push notifications delayed, Hearbeat Interval not reliable Sebouh Aguehian 11/10/13 2:54 AM
You have to take into consideration that increasing the heartbeat will result in more traffic on Google's servers. We're talking about a billion devices. So it's not really an easy change.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/10/13 3:04 AM
We are talking about Google, they can handle 100+ hours of video uploaded each minutes in youtube, and billions of views.. So they should be able also to receive 100byte for an heartbeat packet.
Re: Push notifications delayed, Hearbeat Interval not reliable Sebouh Aguehian 11/10/13 3:08 AM
It's not just about the packet size. It's about concurrency. When you reach a billion, heck even a million, the tiniest change has a noticeable impact.
Re: Push notifications delayed, Hearbeat Interval not reliable mwelsh 11/12/13 11:35 AM
I just started noticing this issue within the past few weeks with hangouts and google voice.  It's frustrating to train myself to manually resync my apps manually on some schedule to keep from missing anything important.
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 11/12/13 12:28 PM
As I said earlier. If you use a phone, you can work around by sending a SMS to wake up the device to fire up a app to receive the message.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/12/13 12:31 PM
Sms are not free

And I never heard a bad solution like that, there are tons of other work around, but only Google could put the word end to this problem without the needs of work arounds.

Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 11/12/13 12:35 PM
That's not a bad solution. Those so called work arounds you said (if you actually know any in detail) are not free either. So far, only BlackBerry has true push and BlackBerry is eating the cost of every push and users just don't know it.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/12/13 12:38 PM
Goole have to short their heartbeat/keepalive, and everything will be ok. If the connection is always alive, we will have true push.
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 11/12/13 12:43 PM
Shorten the heartbeat is a good solution if only a small number of devices are doing it. If every android device shortens the heartbeat, google's cloud will eventually slow to a crawl.
Re: Push notifications delayed, Hearbeat Interval not reliable KKabir 11/12/13 12:46 PM
I agree with you, andQlimax. Thanks for creating this. I can't believe how long this issue has gone one. I had thought it would be fixed by early this year!
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 11/12/13 12:47 PM
On another note, you can actually shorten the heartbeat on the device. Just download PNF from google play.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/12/13 12:49 PM
If someone is not aware, there is the new PNF app that work for every phone, no root required.
It send an heartbeat every x minutes, where you can choose the interval. Setting it to 5 minutes will keep alive the GCM connection used for push notifications.


@aviator i'm the developer of PNF if you didn't notice :D
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 11/12/13 1:13 PM
Sorry. I did not notice. Good work. Push msg is still slow and I bet Google Cloud is over loaded. I am looking some kind of instant notification scheme. The problem is that if there is no wifi, the radio drains the battery very quickly.
Re: Push notifications delayed, Hearbeat Interval not reliable Op gepleurd 11/12/13 3:27 PM
I'm using your app for a few weeks now.
I'm on a Nexus 4 android 4.3 JWR66Y running.
since a few days I'm noticing that your app isn't working on 3G. wifi is working fine, but on 3G it only works if I update the heart beat manually

Do you have any idea what could be the issue.
App has superuser rights.

Re: Push notifications delayed, Hearbeat Interval not reliable Kaan Ünal 11/14/13 10:38 PM
No change with 4.4, still delayed.
Re: Push notifications delayed, Hearbeat Interval not reliable bny14 11/15/13 3:03 AM
...wonderful -.- 
Re: Push notifications delayed, Hearbeat Interval not reliable monbeabea 11/15/13 9:29 PM
@andQlimax I have this problem as I switched my phone from LG Optimus V (Virgin mobile) to Nexus 5 (Straight Talk). I used your app, PNF no-root, the problem seems to go away. Thank you. But I am still confused, is this problem caused by the phone itself or the mobile service carrier? I old phone never experience this problem.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/16/13 12:47 AM
It's written on first post. It's caused by mobile service providers and some wifi routers.
Re: Push notifications delayed, Hearbeat Interval not reliable monbeabea 11/16/13 1:11 PM
Is there anyone who experiences this delayed push notification problem with Straight Talk, aka Tracfone?
Push notifications delayed, Hearbeat Interval not reliable Azeem03 11/18/13 5:28 AM
Thank You so very Much, after numerous reinstalls, factory reset, and what more.. the problem is fixed.. Brilliant!! Amazing...
Re: Push notifications delayed, Hearbeat Interval not reliable Deepak691 11/21/13 7:49 PM
Nexus 5+Straight Talk...same problem.
PNF did not solve the issue for me. Still having a delay of a few mins in whatsapp even though I tried with heartbeat intervals of 1 & 2 mins.
(unknown) 11/21/13 7:51 PM <This message has been deleted.>
(unknown) 11/21/13 7:51 PM <This message has been deleted.>
(unknown) 11/21/13 7:53 PM <This message has been deleted.>
(unknown) 11/21/13 7:53 PM <This message has been deleted.>
(unknown) 11/21/13 7:53 PM <This message has been deleted.>
Re: Push notifications delayed, Hearbeat Interval not reliable monbeabea 11/21/13 8:02 PM
@Deepak691 when I use PNF, I have the exact same result as you. By the way, I switched to T-mobile, and this problem is gone! So, I asked Straight Talk about this problem. After a few days and many emails back and forth. They closed my case ticket without my consent. :'<
Re: Push notifications delayed, Hearbeat Interval not reliable Kaan Ünal 11/21/13 10:50 PM
I know what the problem is. It's about Beacon Mode Power Saving. I mean BmpsFilter. When its off spending too much energy but notifications are coming instantly. There is problem about the energy handling and filtering.

By the way i was closed BcastMCastFilter too.

Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/21/13 10:56 PM
About whatsapp it doesnt use google push,so heartbeat its useless
Re: Push notifications delayed, Hearbeat Interval not reliable monbeabea 11/21/13 10:59 PM
@Kaan Ünal however, I did not change any phone settings, and just by switching carrier (from Straight Talk to T-mobile) I am able to receive push notification instantly. Wouldn't that imply the problem is caused by the carrier?

By the way, how to turn off
BmpsFilter and BcastMCastFilter?
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/21/13 11:01 PM
Its all written in first post.

Its happening only on some carriers or some routers. Its a tcp connection timeout.

Re: Push notifications delayed, Hearbeat Interval not reliable Kaan Ünal 11/21/13 11:09 PM
I was okay with carrier. No delay on mobil data before this.

You must be rooted. With any program like Es File Manager.

Then you must give permission read/write. Found the folder in system/etc/wifi/Wcnss_qcom.ini. Find the line, change, save and reboot

Re: Push notifications delayed, Hearbeat Interval not reliable Deepak691 11/22/13 9:21 AM
@Kaan Ünal My problem is not with wifi - only mobile network.
On wifi, everything works perfect.
 
@andQlimax I am not so sure about your point that whatsapp does not use google push.
Their help page suggests otherwise - http://www.whatsapp.com/faq/en/android/20887936
 
I have noticed one interesting thing though - my Google Hangout notifications now arrive immediately - within a couple of seconds.
Whatsapp notifications are still delayed.
I will also check with whatsapp support and my network provider.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/22/13 11:56 AM
Whatsapp use push only when the app is not actively running,so very rarely..since it is always running in background with is own connection on the port 5223, which go in timeout as well
Re: Push notifications delayed, Hearbeat Interval not reliable Op gepleurd 11/23/13 2:18 PM
@andQlimax, This is untrue. If i set the heartbeat after I send messages I almost instantly recieve answers.
If i do not set the heart beat I have 2 hour delays.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 11/24/13 12:54 AM
I don't know about that.. But it sounds strange to me

Android already use an heartbeat for the push connection, it is only to high: 15 min on WiFi and 28 on 3g. So at worst case you should receive messages every 28 minutes. My app only short that 2 values.

Re: Push notifications delayed, Hearbeat Interval not reliable Adam Zweimiller 11/24/13 7:54 PM
I'm also having this issue with a Nexus 5 on Straight Talk. It started when I ordered a new SIM from ST that supports ATT LTE. Previously it was just HSPA+. The old SIM was fine but the new one has this issue. It has a completely different APN and there is a thread on ST website talking about this issue when using new SIM and APN. Activated PNF today we will see what it does while on cellular.
Re: Push notifications delayed, Hearbeat Interval not reliable Deepak691 11/25/13 7:00 PM
Ok, an update on my issue: had a chat with an ST support agent who gave me a number to their tech support 'hotline'.
I was on the call for almost an hour but nothing came out of it.
The guy said everything 'looks ok' on their side and that I should contact Google to see if there is a problem on their servers!
Looks like I may have to switch to ATT Gophone - push notifications are a deal breaker for me.
Re: Push notifications delayed, Hearbeat Interval not reliable jacknwater 12/6/13 5:55 AM
I just dropped my iPhone for so s4. I'm on AT&T. I immediately noticed on my sgs4 push notifications lagging bad. Especially on my house alarm system. The push notifications come 20 minutes late. On my iPhone they were instant. :(
Re: Push notifications delayed, Hearbeat Interval not reliable jacknwater 12/6/13 6:01 AM
Re: Push notifications delayed, Hearbeat Interval not reliable jacknwater 12/6/13 6:01 AM
Re: Push notifications delayed, Hearbeat Interval not reliable jacknwater 12/6/13 6:01 AM
Re: Push notifications delayed, Hearbeat Interval not reliable Luis Eusebio 12/11/13 2:47 PM
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 12/11/13 2:48 PM
Try to write something.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 12/19/13 11:54 AM
bump
Re: Push notifications delayed, Hearbeat Interval not reliable Deepak691 12/19/13 4:43 PM
Alright, an update from my side - I switched to AT&T Gophone and since then, my issues with push notifications are gone.
Good bye StraightTalk!
Re: Push notifications delayed, Hearbeat Interval not reliable UncleMidriff 12/24/13 1:11 AM
andQlimax, I just wanted to thank you for your Push Notifications Fixer app.

I use Tasker quite a bit, and also the AutoRemote app/Tasker plugin, to allow my Android devices to control and communicate with each other.  As I understand it, AutoRemote uses Google Cloud Messaging to send messages back and forth between devices.

I recently switched wireless carriers to Net10, and I've noticed, also recently, that my phone stopped receiving AutoRemote message reliably when using my mobile data connection.  When on WiFi, I'd get all the messages as I'd expect, but whenever I'd be away from a WiFi connection, I'd get nothing.  I spent more time than I would like to admit this weekend searching for a solution to this problem, and I wasn't finding anything.

Then I found this thread of yours, downloaded your app, set the Mobile heartbeat interval to 1 minute, and things are once again working just fine!  It would seem that Net10 shuts down TCP connections incredibly quickly.

Anyway, thank you so much for this thread and your app.  I was really starting to pull my hair out trying to figure out what was going on, and you not only provided an explanation, but also a solution!
Push notifications delayed, Hearbeat Interval not reliable Juan Carlos Salguero 12/27/13 3:17 PM
I own a Nexus 4 since 7 months ago, running Kit Kat, unrooted, and I still can't believe that google has not been able to fix this issue. Event installing PNF with a heartbeat of 3 minutes, I am still getting notification on WiFi 30 minutes later.
Push notifications delayed, Hearbeat Interval not reliable andQlimax 12/28/13 1:06 AM
@juan 30 minutes delays on wifi are not caused by the problem described here.
Your problem on the nexus 4 is caused by the phone loosing the wifi connection while the screen is off.
Re: Push notifications delayed, Hearbeat Interval not reliable Cas Haley 12/28/13 3:28 AM
Push notifications delayed, Hearbeat Interval not reliable Juan Carlos Salguero 12/28/13 4:10 AM
@Qlimax. And how could it be solved? Any link? Thanks
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 12/28/13 4:18 AM
@juan not always can be solved, it's often a problem caused by the combination phone / router..you can solve only by changing the router probably or wait for some software update on your nexus 4 / router that could fix it..google seems doesn't care to much about those things..
Push notifications delayed, Hearbeat Interval not reliable Diego Madrigali 12/28/13 10:42 AM
Download this app. It will a drain your battery a little bit but it will solve your problem

https://play.google.com/store/apps/details?id=jp.miraidou.regpon.wifi

Re: Push notifications delayed, Hearbeat Interval not reliable Juan Carlos Salguero 12/28/13 2:55 PM
@Diego Thanks a lot for the suggestion. I will try it!
Push notifications delayed, Hearbeat Interval not reliable Abhai S Rao 1/6/14 8:02 PM
One of the reasons I loved BlackBerry, coz they had lighting fast notifications. I hope Android does something about it soon??? For the time being I'm going to iPhone as fast notifications for me is really important!!! But will be back soon after this problem is resolved on Android.
Push notifications delayed, Hearbeat Interval not reliable Jeff Weitzmann 1/11/14 6:27 AM
Please fix this issue asap. It is really embarrasing that Google doesn't yet fix it .
Push notifications delayed, Hearbeat Interval not reliable Frank Nagel 1/13/14 6:49 AM
Sorry, baut the Push Notification All don't work with cm 10.2.
Reagards Frank
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 1/14/14 11:37 AM
bump
Re: Push notifications delayed, Hearbeat Interval not reliable Vlad Stancea 1/18/14 5:47 AM
I have a similar problem on my Nexus 7 2012 3G model, but unlike you guys, i don't receive my notifications delayed by x minutes, I just don;t receive them at all until i open the apps that were supposed to receive notifications. I also tried PNF and used the drastic setting of 1 min on both WiFi and 3G and still nothing. The only solution, or lets say workaround, is to remove my google account from my tablet and setting it back again. Afterwords it works for about 12-24 hours. And then I have to do it back again.
Push notifications delayed, Hearbeat Interval not reliable Yuthistran Nagaraj 1/19/14 2:41 PM
My facebook push notifications is too slow...4.2.1 is quick than 4.4..which is weird..please update us...suffering alot.
Re: Push notifications delayed, Hearbeat Interval not reliable Jonathan McClure 1/21/14 9:24 AM
Same issue for me on a Droid MAXX android 4.4, notifications stop coming thru when wifi is connect at work. Works ok on wifi from home. Works ok for other androids on the wfi at work, even a Nexus with 4.4. 

It's especially troubling because my company is releasing a new feature that uses push notifications. 

Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 1/21/14 10:05 AM
@jonathan how you can say "same issue for me"? You said your notifications stop working on your work wifi .. Here we are talk about delays (5-15 minutes) in notifications.

Your problem is obviously caused by the firewall or proxy of your work wifi. Many companies use firewall to close tcp port. It means the tcp port 5228 is closed, you can't receive notifications umless they open the port.

Re: Push notifications delayed, Hearbeat Interval not reliable Jonathan McClure 1/21/14 10:59 AM
You're absolutely right. We have 2 wifi networks and I had mistakenly connected to one I normally don't use. I connected to the other one and it works fine. Sorry for the confusion. 
Re: Push notifications delayed, Hearbeat Interval not reliable nimrodiny 1/27/14 10:12 AM
Same here. This issue is absolutely ridiculous. So annoying..
Push notifications delayed, Hearbeat Interval not reliable Irina Slavgorodskaya 1/29/14 2:08 AM
Same problem on Sony Xperia! Have reported a few times to Google - no result. It's SUCKS!
(unknown) 1/30/14 7:07 PM <This message has been deleted.>
Push notifications delayed, Hearbeat Interval not reliable Onur KIZILDOĞU 1/31/14 1:14 AM
Same problem here. HTC One Mini. Push notifications are very slow. facebook, whatsapp etc. I'm using fixxer. Google officals, please solve this problem...
Re: Push notifications delayed, Hearbeat Interval not reliable Onur KIZILDOĞU 2/1/14 4:08 AM
Why some phones have this problem and some don't?
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/1/14 4:13 AM
this problem depends from the network you are connected, all android phone have the problem described.
Re: Push notifications delayed, Hearbeat Interval not reliable Jeff Weitzmann 2/1/14 4:48 AM
Not all Android phones have this problem. It depends on the version. My Galaxy 4.2.2 doesn't have this problem. My nexus 4.4 has it.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/1/14 4:51 AM
Then you don't have the problem described here, but an other issue. Nexus 4 is known to completely drop wifi connection on some routers. That's a device specific issue, different from the one described in first post. Thanks
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/1/14 4:54 AM
It's also possible that some customization made by Samsung, htc, lg, etc, have partially solved the problem. Stock android is affected.
Re: Push notifications delayed, Hearbeat Interval not reliable Jeff Weitzmann 2/1/14 5:00 AM
I agree. stock android has the problem. Probably Samsung did some modifications on the galaxy.
Push notifications delayed, Hearbeat Interval not reliable Melanie Krawanski 2/2/14 2:54 AM
Seriously, I regret buying this phone Nexus 5... I had the other Samsung Nexus (google phone) and never had a problem except when the usb port decided to stop working and cant charge the phone anymore. I should have surrendered to Apple... Die LG Nexus 5... I fractured my screen in the first month of use and now 20 minutes delays on my messaging... Big LEMON phone!
Re: Push notifications delayed, Hearbeat Interval not reliable Onur KIZILDOĞU 2/3/14 6:20 AM
Push Notifications Fixer, sometimes works and sometimes doesn't seem working. (mobile heartbeat interval=3 min.) how can I be sure exactly? because sometimes the delays continue.
Re: Push notifications delayed, Hearbeat Interval not reliable Onur KIZILDOĞU 2/3/14 7:45 AM
@andQlimax
One more question for Whatsapp;
"Android push notifications works through one TCP connection on the port 5228 between the phone and google servers"
 
 

You wrote that the application (whatsapp) is using port 5222.  Is there any way to use that specific port for this application?

Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/3/14 10:32 AM
this thread is to try to report the problem to google, not to discuss about PNF
PS: PNF only change the google GCM keepalive interval, so your question should be: does whatsapp has a keepalive interval which is possible to change? The response is no, it doesn't have that.
Re: Push notifications delayed, Hearbeat Interval not reliable Hatem Ahmed 2/9/14 7:17 AM
Just a clarification for Straight Talk customers. This has nothing to do with your phones. 

I have a Nexus 4 and I've been using Straight Talk (T-Mobile) sim without problems.

Push notifications started lagging only when I switched to Straight Talk (AT&T) sim card.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/9/14 7:29 AM
@hatem it's written on the first post.
The problem only happens on some carriers and routers, but that doesn't mean that android should not handle that. In my opinion android should handle that, since the logic to handle the problem is already there.
Re: Push notifications delayed, Hearbeat Interval not reliable Emanueler0x 2/10/14 1:59 AM
Seems like qualcoom is working on it. https://www.codeaurora.org/cgit/external/wlan/prima/log/ :) maybe someone can build a kernel with these new drivers with alot fixes.
Re: Push notifications delayed, Hearbeat Interval not reliable Thomson1 2/11/14 1:33 PM
OK guys the temporary "solution" I'm using is to simply have WiFi turn off when the phone is asleep. That way, my LTE connection stays on and I get all my push notifications on time. As soon as I unlock the phone my WiFi turns on and thus I avoid using my data plan. You will use a small amount of data when your phone is asleep using this setup but it's quite a small sacrifice to make in order to get reliable push notifications.

Google had better fix this in the next update or I will be ditching this phone for a Galaxy S5.
Push notifications delayed, Hearbeat Interval not reliable Li Yi-Fei 2/17/14 7:32 PM
suggest to implement a dynamic mechanism like exchange。
reference
http://technet.microsoft.com/en-us/library/ff459598.aspx
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/18/14 12:25 AM
@Li Yi-Fei  Thats a good reading.
I also suggest to google to use a dynamic heartbeat, an year ago..But they don't care probably.
Re: Push notifications delayed, Hearbeat Interval not reliable Shriekmau 2/19/14 1:23 PM
I don't know whats going on here but let me explain my scenario:

I have a Moto X on Sprint. It is not rooted, completely stock. As of 2 weeks ago my notifications were coming through fine, no delay. Suddenly my notifications stopped coming through in a timely manner. This happened simultaneously on mobile networks and WiFi. I have installed no OS updates, no new apps, made no setting changes. I have factory restored my phone 2 times, once restoring from Google backup, the other setting the phone back up from scratch. Neither method resolved my issue.

Here is the kicker, I work for Sprint. There have been no updates to the network or port UPnP TTL/Timeout. I have made no changes to my router. My co-workers are not experiencing this issue. I am not sure if it is device related or Google account related. I have not paid close enough attention to my Nexus 7 to tell if it is affected as well.

If this were heartbeat related, it would have been present from the start, not suddenly crop up 2 weeks ago. I have a Nexus 5 being delivered today and will test with it. I have a feeling it is related to my Google Account and not device specific. Switching to the Nexus 5 will prove that.
Re: Push notifications delayed, Hearbeat Interval not reliable MightyJimmy 2/23/14 6:45 AM
I use a Nexus 5 on Straight Talk and even with the PNF app I still experience delays. Does anyone know of a scenario I could create in Tasker to implement a solution?
Re: Push notifications delayed, Hearbeat Interval not reliable Jessica Daniele Lustosa da Silva 2/24/14 9:52 AM
Hello,  I wonder why my app doesn't show the full settings??? My app is PNF (PUSH NOTIFICATIONS FIXER)
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 2/25/14 12:49 PM
The push service can call the client phone from a designated number(s). Upon incoming call from one of those numbers, the client software running on the phone rejects the call so no charge is incurred. The client then downloads the message from the server. No network connection has to be maintain all the time this way and the delay is short.

Edit. Please don't blame google. They can't fix this issue.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/26/14 5:00 AM
@Aviator why do you say google can't fix it?

Google have to implement a dynamic mechanism to set the right keep-alive interval based on the network which the user is connected. Not that hard honestly.

If there is a valid reason, I want to know it then.

Ps. what you say about a phone call is absurd
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 2/26/14 6:15 AM
Keeping a TCP connection alive is not practical. Do you have any idea what it does to the phone's radio and battery? You guys all think there is a hard wire between the phone and google; but in fact, there are many third parties involved. In order to keep a constant connection, the heart beat interval has to be short (e.g. less than the desired maximum delay). Otherwise, it won't give the 'instant' feel.

P.S. Why my phone call idea is absurd? If you can't come up with any valid reason, you are just blowing smoke or you are just one of those don't think out of the box. Hey, it works for our instant message and VoIP application and no one has to pay anything for phone charges. What about this. Why not you guys maintain active connections from your clients to your server. Implement any heart beat you want and problem solved. Stop blaming and start working. 
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 2/26/14 6:28 AM
I already worked and created an app which short the heartbeat interval to the desiderated value. I set it to 4 minutes on wifi, and never noticed any battery problem.
Notifications (push ones) are instanlty.

I just wish that all users can have push notifications in time, and don't have to relay on a third party app like mine and without that they have to blame android for a stupid problem like this.

The heartbeat mecahnism is a standart to keep alive a TCP connection.

Also, if google don't fix that, other app developers will not use google GCM for push, but will use their own TCP connection with their own keep-alive..Having 10 apps with a dedicated persistent TCP connection is really a problem for the battery. Whatsapp and similar already DO that.
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 2/26/14 9:05 AM
Again, keeping a constant TCP connection is not wise. Haven't you heard the delay problems with Whatsapp, Viper, and etc? Also, depending on carrier/phone, wifi gets turned off when screen goes dark.
Push notifications delayed, Hearbeat Interval not reliable ball karo 2/26/14 5:54 PM
Push notifications delayed, Hearbeat Interval not reliable Op gepleurd 3/12/14 12:12 PM
On WiFi the app works flawlessly. But if I'm on 3G (T-Mobile NL) the mtalk.Google.com service almost instantly disconnects. I see the following error in the logfile of "Google Play Services" .
"Failed connection ev:1 state:3 err:16 net:0"

This code keeps showing every  (set) heartbeat interval. If I start the service manually it connects without problems, but almost instantly disconnects.

What does this error code mean and why is the service being disconnected automatically?

Can't vind what this specific error code means on Google.

(unknown) 3/12/14 12:14 PM <This message has been deleted.>
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 3/12/14 12:21 PM
maybe a wrong apn setting, check your operator website for correct settings
Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 3/12/14 3:04 PM
Maybe T-Mobile is blocking mtalk. I know a lot of carriers are blocking VoIP. Sometime they throttle the speed down to a point that VoIP becomes not usable when they suspect the user is using a VoIP app.
Re: Push notifications delayed, Hearbeat Interval not reliable Op gepleurd 3/12/14 4:02 PM
Thanks for the tips.
If T-Mobile is blocking mtalk, I shouldn't be able to connect at all right?

I will look at the issue, maybe I'll contact T-Mobile also.

Re: Push notifications delayed, Hearbeat Interval not reliable Aviator168 3/12/14 4:07 PM
They will deny it, and will let you connect and then disconnect you
Re: Push notifications delayed, Hearbeat Interval not reliable Tom JP 3/13/14 1:30 PM
@adam I encountered this issue the exact same way you did. I had the old ATT StraightTalk sim that used att.mvno as APN type without any sync lag whatsoever. My new LTE ATT StraightTalk SIM uses tfdata as APN type and has a lag of 20-30 minutes in delivering all Google services. 

Did you try re-activating your old SIM again, and if you did, did it work using att.mvno without push notification delays? Some have said when they go back to reactive the old StraightTalk ATT SIM, it reactivates but must use tfdata as the APN type - which doesn't resolve their notifciation delays. Just installed andQlimax app to see if it helps for now.
Push notifications delayed, Hearbeat Interval not reliable Milena T 4/12/14 5:32 AM
I'm so tired of not receive the twitter's notifications. I tried solve the problem doing a lot of things, but I couldn't. Please, help me.
Push notifications delayed, Hearbeat Interval not reliable andQlimax 4/12/14 5:34 AM
Contact Twitter support android...@twitter.com
Re: Push notifications delayed, Hearbeat Interval not reliable Zoltán Horváth 4/22/14 2:22 AM
My mobile carrier closing TCP connections after cca 5 minutes, so in (worst case scenario) the next 23 minutes I am without GCM push notification. So annoying and absolutely ridiculous... On IOS devices push notification works like a charm, so it could be solved...
Push notifications delayed, Hearbeat Interval not reliable ppraju 4/28/14 11:56 AM
7 months and you're still investigating?
Re: Push notifications delayed, Hearbeat Interval not reliable rhenry pias 5/11/14 12:15 PM
Re: Push notifications delayed, Hearbeat Interval not reliable rhenry pias 5/11/14 12:15 PM
Re: Push notifications delayed, Hearbeat Interval not reliable rhenry pias 5/11/14 12:15 PM
Push notifications delayed, Hearbeat Interval not reliable blinkeh 5/16/14 4:51 PM
I have the HTC one and this is a bit of a pain please fix this problem guys
Push notifications delayed, Hearbeat Interval not reliable J Steenhoven 5/18/14 12:32 PM
4.4.2 and still the same!
Push notifications delayed, Hearbeat Interval not reliable Marcel Bößendörfer 5/19/14 2:11 PM
Thank you for the app. It took me a while to figure out the problem. Too bad Google not fixed it yet.

And: F*ck off unitymedia with their DS lite crap!

Re: Push notifications delayed, Hearbeat Interval not reliable Alex Shturm 5/20/14 11:06 AM
Confirming the problem with my D-link router - it looks like it closes idle TCP connections just after 1 minute !!

Re: Push notifications delayed, Hearbeat Interval not reliable Dave the lad 5/21/14 2:45 PM
I have a Sony Z2 and don't get facebook notifications anywhere near reliably. I've tried all the suggested solutions, all without success. I never had this problem with my HTC one X, although initially I did with my desire. The other half has a Samsung S4 and has never had this problem. So can someone please explain why it only seems to effect certain phones?
Re: Push notifications delayed, Hearbeat Interval not reliable Alex Shturm 5/21/14 2:50 PM
@Dave the lad
You could have some other app(s) on the phone that receive pushes and therefore keep TCP connection on port 5228 open on router. So it may be dependent on specific apps installed on your phones.
Re: Push notifications delayed, Hearbeat Interval not reliable Dave the lad 5/25/14 8:50 AM
What is the definition of a 'push' then? As my twitter, various games, email, pregnancy app, calendar all work fine. I get the odd facebook notification from time to time too.
Re: Push notifications delayed, Hearbeat Interval not reliable Carsten Huti Rothhaß 6/9/14 1:10 PM
This problem still exists on 4.4.3
Its so annoying. It seems to depend on the router used and the wifi chipset. Sony Xperia and Nexus Phones do have the error due to same wifi chipset driver.

Ive experimented a lot without a real success. Setting mcastbcast to 0 in wifi config file helps a bit if youre rooted. But doesnt fix it

Re: Push notifications delayed, Hearbeat Interval not reliable David Campos 7/11/14 2:33 PM
I`ll work in This apple.
Re: Push notifications delayed, Hearbeat Interval not reliable Paul 8/5/14 11:30 AM
Hi everyone,

I'm sorry I hadn't realized that the discussion about heartbeat intervals had continued on from our old forum. The specific issue mentioned in the old forum (referenced back in the very first post in this thread) was resolved a couple of versions of Android ago.

A few people in this thread have noted that this problem only happens to them when connected over wifi, and tweaking the wifi router's settings may resolve the problem for them.

Regarding the idea that some carriers may be closing their TCP connection on a shorter interval than Android's heartbeat, I've passed that feedback along.
Re: Push notifications delayed, Hearbeat Interval not reliable dev0x10 8/9/14 9:31 AM
Thanks for your link Alex! I'm using D-link and after read the thread, I disabled my router's QoS and my GCM notification so far works perfectly.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 8/9/14 9:35 AM
Thanks for the update @Paul

Not sure if the heartbeat thing has been fixed.

Keep us updated.

Re: Push notifications delayed, Hearbeat Interval not reliable Alex Shturm 8/9/14 10:04 AM
My QoS was turned off, and I still had these problems.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 8/9/14 10:09 AM
If your router allows it, you have to look for tcp idle timeout, or something related to that. Some routers let you configure the timeout in minutes. Try to look all the settings, specially advanced ones. Of course you have to increase it to something like 30 minutes. 
But not all routers allow it, some have a default value that you can't see/change.
Re: Push notifications delayed, Hearbeat Interval not reliable dev0x10 8/9/14 11:19 PM
@Alex Shturm: yes, after several minutes of test the problem still occured
Is there any solution for this problem? By code in Android application? 
Re: Push notifications delayed, Hearbeat Interval not reliable Alex Shturm 8/10/14 8:21 AM
Push Notification Fixer (https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer.noroot) does help.
My settings on WiFi are pretty agressive - 1 min.
Re: Push notifications delayed, Hearbeat Interval not reliable dev0x10 8/10/14 8:46 AM
@Alex Shturm : Thanks for the link. I'm trying to do something similar with that push notification fixer inside my app to keep the connection alive. I wonder if the source code is open for public.


Re: Push notifications delayed, Hearbeat Interval not reliable Mannish Kumar 8/16/14 9:26 PM
I have started facing the issue in my Galaxy Note 2.
I own other mobile phones as well and the issue exists on moto e, LG L90 right from the beginning.
Re: Push notifications delayed, Hearbeat Interval not reliable Mannish Kumar 8/16/14 9:26 PM
Re: Push notifications delayed, Hearbeat Interval not reliable Diga Widyaprana 8/25/14 7:37 PM
+1 this.
Anyway, I have the feeling that it is not carrier-related. I have just installed a custom ROM on my SE arc S when the Hangouts notifications start to be intermittent (or actually, non-existent at all). When I was on stock, everything was fine.

Another possible culprit is "battery-saving" apps like Greenify. The ROM I just installed has Greenify bundled with it.

Anyway, if you need to know (Google Engineers, to be specific), my custom ROM was Xperia Ultimate HD 5.0.1, stock kernel, Android Version 4.0.4.
Re: Push notifications delayed, Hearbeat Interval not reliable dev0x10 8/25/14 8:08 PM
here I share my test result with GCM using 3G and Wi-FI, it's not pretty but I hope it's helpful
There are some failed notification delivered but it's because my sender application problem not GCM

Re: Push notifications delayed, Hearbeat Interval not reliable Op gepleurd 8/30/14 9:35 AM
In my case it IS the carrier.
T-Mobile NL cuts off the GCM (with error code; Failed connection ev:1 state:3 err:16 net:0) after I turn the screen off. Changing the interval doesn't help.
On the average messages arrive around 2 hours after being send by the sender. It annoys the &#?@ out of me.
It helps if I open whatsapp, then the messages will arrive directly. As soon as the screen turns off the push messages stop coming.

On Wifi I don't have any problems at all and instant push delivery and sending. Even with the screen turned off.

Re: Push notifications delayed, Hearbeat Interval not reliable Lucia Arena 9/16/14 2:36 AM
Estoy harta de tener que tener las app abiertas o controlar manualmente si he recibido algo porque el retraso del servicio push pueda llegar a tardar horas
Re: Push notifications delayed, Hearbeat Interval not reliable Barış Selçuk Çolaker 9/18/14 10:51 AM
do not believe this google's employees and any other says it is carriers and router's problem. all of them LIE.

this is completely google's fault. let me explain why.

i have nexus 4 (cursed with delayed push notifications) and my mother has crappy vodafone smart phone. and i take my friend's iphone 4s to see how it reacts.

nexus 4 with stock 4.4.4
vodafone smart with 4.2.2
iphone ios 6

we all using same carrier "vodafone tr" and same router in my home.

i waited 3 phones to deep sleep for 30 mins after connected mobile data. and take my father's phone sent them messages via whatsapp.

guess what happened? both iphone and vodafone got notf immediately, and nexus 4 got it 2 mins later (it takes sometimes 5-10 mins).

then i connected them to my router zyxel. and wait again 30 mins then i sent messages again via whatsapp

this was completely fail for nexus 4, again notifications drop like lightning to iphone 4s and vodafone smart. nexus 4 couldnt get it for 15 mins until i push power button

i tried everything on my phone, rooting, custom roms, changing routers values

if google wont fix this with android L, dream will end. i'll smash my nexus 4 and buy a brand new f.king iphone.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/18/14 10:56 AM
As I wrote in first post, the fault is 50 and 50. If you change router and carrier you will solve, if google lowered the heartbeat it will solve without change router and carrier.
I understand that it works for iPhone, because it probably have a shorten heartbeat like 2-4 minutes. That's all.

Google just not care much.

Also the problem is that whatsapp not fully use google push notifications. Whatsapp use it's own persistent tcp connection, which instead apple would not allow.
Re: Push notifications delayed, Hearbeat Interval not reliable Barış Selçuk Çolaker 9/18/14 11:17 AM
bro pls be objective, these devices are not a toy. we are working for private companies and they expect from us to reply every mail and messages immediately. i'm tired to look my phone for notf. even google's gmail and mail app dont work properly. if you work in a factory as a product engineer and that factory's employees communicate with e-mail and apps like whatsapp to send pictures immediately you can understand me better. new android L my last chance to stay android or i'll get a phone that i said many years ago "ill never use this shit apple device" :/
Re: Push notifications delayed, Hearbeat Interval not reliable Yandroid 9/19/14 4:27 PM
Yep. I dunno what causes this problem, but after reading tons of threads regarding this matter, it seems to me, it has something to do how the OS handles the receiving of push notifications through wifi after screen is off. 
I do not have to wait even 1 min. If I turn off my screen manually, push notifications wont work anymore for example by GTalk. I receive them only with more or less delay (between 2-10 minutes).
If I am charging the phone wifi works without any delay.
Mobil data is working all the time without any delay.
The setting is wifi always on during sleep. Its not working? Am I misunderstanding the meaning of this feature? Dont think so. Does it get an "override" somehow? What do you think?

Whats more interesting - I am testing this cr@p thing since days - if I make a hard reset, the wifi issue is gone. I make some changes in the settings obviously (GUI, sound etc.) download some apps, everything works fine, but guess what, only until the first restart of the phone! And after that its broken again. Very strange. 
edit:
I dont know whats the difference, but the WeChat app doesnt behave this way. I always receive push messages immediately. No app needed in addition. Weird.

I have found only 1 workaround, the Advanced Wifi Lock app. Now I have more questions, since I am not really familiar with Android OS in depth.
If the screen is on, does it mean a wake lock for the wifi?
If the "wifi always on during sleep" feature means what I am assuming, should the wifi radio be on all the time with wake lock, or is there an other feature in the OS besides wake lock to keep wifi alive, so it can receive push notifications all the time? 
Or is the mechanism something else for wifi connection to receive push notifications immediately?
I hope my thoughts are understandable. :-D

Why is this interesting in the first line? Battery drain.
Is it necessary to use wake lock to keep wifi alive or is there any other solution to achive this?
Does a wake locked wifi radio consume more power than a permanent 3G connection? Just in case of push notifications and standby. According to this document 3G idle needs less power or am I missing something? Lectures/AndroidPower.pdf
If this is the case, the new question is, how much more? Do you know it?
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/21/14 4:09 AM
@Yandroid you seems to talk about to an other problem. Your problem is about your phone completely loss the mobile data network/wifi while the screen is off.

The problem i'm talking about is that the particular tcp connection used by push notification does go in timeout when there are no push notifications for some minutes. when this connection is in timeout, even the phone is connected to internet, push notifications won't arrive until that particular connection is re-established. this problem can be solved with an heartbeat sending a network packet over that particular tcp connection every x minutes.

About your problem of your phone losing the wifi/mobile data connection while the screen is off is a different thing 
Re: Push notifications delayed, Hearbeat Interval not reliable Yandroid 9/21/14 7:11 AM
First of all thanks for the reply.

But nope, we talk about the same or at least similar issue. I have read a lot of those threads complaining about this wifi delay after the screen is off. I have read your replies and the PNF also at xda etc. I get it.
Pls. read my post carefully. I do not loss the 3G internet connection. Im pretty sure that I do not loss the wifi connection either, since WeChat is working ongoing (probably another port or different processes, not GCM etc. I am not an expert), and if the Battery monitor is reliable in Android, the blue line of wifi is without any break.

But okay I would like to solve this issue. Do you know a reliable app which can log/monitor whether the wifi radio/connection is still alive after I turn off the screen? I still think, the problem has something with the push function to do on wifi maybe, and not the wifi radio itself?!

PNF didnt solve my issue, only the wakelock, which is weird, since WeChat is working all the time on wifi. But again I do not know the exact method how this wake lock app works. Has it an effect maybe on GTalk?

Can you tell me something about the battery drain issue maybe? I am trying now to measure the battery drain in both cases with Battery Monitor Widget which seems detalied enough to get an answer hopefully.

I know a lot of questions. :-D
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 9/21/14 7:19 AM
About wechat it's pretty possible that the app is not using google push, but use it's own persistent connection with a better keepalive than google. 
This is a big problem for google, lot apps use their own connection instead of the google push notifications, this cause more battery drain since the phone will have to kepp one connection for each app instead of a unique conenction.

About the delay on wifi while the screen is off, if you are sure that your connection is not lost, then  the delay will occurs also when the screen is ON, like happens on my without PNF.

I can't answer your other questions. What I can say is that google should care those problems. I'm pretty bored.
Re: Push notifications delayed, Hearbeat Interval not reliable Yandroid 9/21/14 11:33 AM
Thanks for any reply.

I can understand how boring is this for you. Its really annoying for everyone I think.
To answer your question. I am not 100% sure that the phone doesnt lose the signal on wifi. I can only tell you what I see in the battery settings or what I experience with the phone.
edit: I forgot to mention, that my router also shows the phone as connected when the delay already occurs.
If you have any suggestions how to check this for sure, please tell me.

About the delay. It happens only with GTalk for me (I do not use Facebook or Gmail app). Immediately after the screen is off, push notificatons have a delay. But not WeChat, since WeChat works, I think that wifi should be on. Or am I missing something?

When the screen is OFFthere is a delay on wifiGTalk shows my status is IDLE.
When the screen is ON, there isnt any delay neither on 3G nor on wifi. GTalk shows my status lets say online. 
When the screen is OFF, there isnt any delay on 3GGTalk shows my status lets say online.
When the screen is OFF, but I am charging the phonethere isnt any delay on wifi. Although GTalk shows my status is IDLE.

If you have any idea, I appreciate any thoughts.

Cheers,
Re: Push notifications delayed, Hearbeat Interval not reliable Guillermo LT 9/24/14 2:51 AM
Instalado corrector
Push notifications delayed, Hearbeat Interval not reliable David-M 9/24/14 12:27 PM
Hello, Google. Why are you promoting hangouts as an instant messaging app when it doesn't receive messages instantly?
Push notifications delayed, Hearbeat Interval not reliable Stefano Staiattento 10/9/14 12:01 PM
I am using GCM to deliver alarm messages that need my action. Few days ago, they were delivered 9 hours late, how can it be this hard to do a heartbeat every so often and kill that connection when it's down? I had messages delivered the next day! Colleagues not using GCM for that reason, and I'm implementing my own heartbeats so I at least poll when you die.
Re: Push notifications delayed, Hearbeat Interval not reliable andQlimax 10/9/14 12:05 PM
@Stefano, it's an heartbeat problem if the notificationsa are delayed at max 28 minutes on mobile or at max 15 minutes on wifi.

In all other cases it's your connection to internet that is not active. This is an other problem google should solve. Reliability of connection while the screen is off. 
Push notifications delayed, Hearbeat Interval not reliable Abraham Altabas 10/11/14 3:31 PM
Google (Android), please fix the push notification delay issue. Lg L5 II.
Push notifications delayed, Hearbeat Interval not reliable Garfield Dunn 10/15/14 4:59 PM
I have a non-rooted Samsung Galaxy Note 3 running KitKat 4.4.2 on the AT&T network. Recently installed PNF. However, it has made no difference. I set the Heartbeat to as frequent as 3 minute intervals.

Welcome any suggestions...

Thank you in advance.

Garfield

Push notifications delayed, Hearbeat Interval not reliable Garfield Dunn 10/15/14 4:59 PM
Push notifications delayed, Hearbeat Interval not reliable James Lovet 11/11/14 4:22 PM
Fix this Google. It's fucking with my soul.
Push notifications delayed, Hearbeat Interval not reliable James Lovet 11/11/14 4:22 PM
Push notifications delayed, Hearbeat Interval not reliable Hashim Abdulla 11/14/14 3:07 PM
Can not download Whatsapp
Push notifications delayed, Hearbeat Interval not reliable Lavanya Sampathkumar 11/22/14 5:40 AM
Seriously screwing with my mobile!
Push notifications delayed, Hearbeat Interval not reliable veena cv 11/28/14 8:30 AM
Whatsapp is not working properly outgoing msgs are delayed.
Re: Push notifications delayed, Hearbeat Interval not reliable Alessandro Prinzivalli 11/29/14 7:26 AM
Hi, I've exactly the same problem.. And I've just found out that this problem is related to the sd card. Without sd I get no delays....
Re: Push notifications delayed, Hearbeat Interval not reliable Bellsy 12/28/14 1:21 PM
My girlfriend has a Xperia z1 has this exact issue with hangouts, although I never did on my Samsung galaxy s3.

I just upgraded to an xperia z3 and now I have this problem. I have tried the various power settings and it makes no difference.

Please fix it!
Re: Push notifications delayed, Hearbeat Interval not reliable Tobi L. 12/29/14 5:51 AM
I have the same problem while on mobile data, everything is working fine while on wifi!

The device is Sony Xperia Z1 compact with CM11 latest nightly (2014-12-24).

 I noticed several things:
- When GCM is not connected / not connecting, Youtube app is also not working
- within the Google play services log console (*#*#426#*#*), it shows me a "failed connection ev: 1 state:3 err:16 net:0
- sometimes the connection is establishing once I open the console (sic)
- Removal of SD-Card did not solve the problem for me
- Once I connect to wifi (or actively enable wifi), push messages arrive


Re: Push notifications delayed, Hearbeat Interval not reliable Tobi L. 12/29/14 6:00 AM
I found the solution for my problem here: http://stackoverflow.com/a/25945675.

The background service was restricted for google play services (I don't know who did that, it definitely wasn't me).

In addition, the button to re-enable this is well hidden: You have to open the mobile data usage overview (long press on carrier/mobile network info quickstart button) and then select google play services in the list and then there is a checkbox at the bottom of the view :P

Good luck!
More topics »