Categories: Connecting to networks and devices : Galaxy Nexus :

Push notifications delayed, Hearbeat Interval not reliable

Showing 1-120 of 120 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.
Deepak691 11/21/13 7:51 PM <This message has been deleted.>
Deepak691 11/21/13 7:51 PM <This message has been deleted.>
Deepak691 11/21/13 7:53 PM <This message has been deleted.>
Deepak691 11/21/13 7:53 PM <This message has been deleted.>
Deepak691 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!
Push notifications delayed, Hearbeat Interval not reliable selvan777 1/30/14 7:07 PM
Nexus 4 since 2012 and I only recently noticed the extra long delay.

I'll give PNF a try.

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.

andQlimax 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
More topics »