yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] andQlimax:
That's very strange. Your device does have google play services installed and not freezed?

In any case to fix issue, you could remove your google account and then add it, you should not lost anything.
[Android Apps and Games] cAase:
I've disables some Google services, I suspected that was the case. Do you have any idea which one to enable for this? I've also tried removing account and adding it, didn't really help.
[Android Apps and Games] andQlimax:
It should be com.google.android.gms /.gcm.GcmDiagnostics
[Android Apps and Games] cAase:
How weird, it's enabled.

Edit: seems like some "activity" service of the same name was disabled. So I guess it was disabled.

It looks like this in the monitor, I guess the 27.50 means 28 min, meaning default settings?
[Android Apps and Games] andQlimax:
Yes "initial: 1680s" espressed in seconds, it's 28 minutes
[Android Apps and Games] cAase:
Seems like it solved itself just by enabling gcm service. Appreciate the help.
[Android Apps and Games] blax123:
Does the reset to default button in your App does not set everything to default? Do I have to remove and add back my Google account to get the real default settings?
[Android Apps and Games] andQlimax:
No, reset it's enough. It remove what has been added before by pnf.
[Android Apps and Games] dacorsa:
thanks i have my phone rooted!
[Android Apps and Games] AlphaUMi:
Thanks for this app, I really notice an improvement in receiving my notifications. A have some questions, though:

1 - I set the heartbeat mobile interval to 5 minutes and the heartbeat wi-fi interval to 4 minutes. It was 8 and 7 before (Android 4.1.1 Jelly Bean). Do you think it is too low (I mean too battery consuming)? I'm with these values from 2 weeks and the battery seems to last as usual.

2 - When I open the Play Services Monitor I see:

DeviceID: xxxxxxxxxxxxxxxxxxxxxx

Status: Disabled

Is this normal? It's strange at least, because I'm receiving sms push, emails, notifications, etc, I can update my apps in Play Store....

3 - Assuming I'm satisfied with the values I set, I really need every MB of storage space, so I'm thinking of uninstalling the app and leave the values as they have been set by PNF. Under which conditions my values could be reset to their defaults automatically? Or can I uninstall the app and stay sure that my values will persist in the database?

About my intention of uninstalling the app: I already said that it's only a matter of space, I'm really satisfied with PNF and it did its job for sure. I'm willing to donate soon. So... no disregard intended!
[Android Apps and Games] JazzMozz:
I have two questions:

1. Is it me or are the "set at boot" absent? I cannot find them in the app.

2. I think PNF is killed by Android after a while because after a while it does not show up in my running apps list. Is PNF prevented from being killed by Android? If not, how can I make sure that it is?

Thanks for helping me out.
[Android Apps and Games] andQlimax:
Hi,

You talking about PNF root?

PNF root permanently change the heartbeat, untill you restore it.

So it does not need to run in background like PNF no-root.

Regards
[Android Apps and Games] JazzMozz:
Yes, I've the root version. Thanks for your reply. Very helpful. But I find it strange that even when I've installed this app, my emails keep being delivered with a considerable delay (sometimes 50-60 minutes). Any idea what might be going wrong?
[Android Apps and Games] soap00:
Hi i have noticed that monitoring the hertbeat , the countdown go negative, this with wifi and with 3g. What does this mean?

Thanks
[Android Apps and Games] ascanio1:
PNF rooot did not fix it... pls help, if you can.

Problem:

Delayed notifications.

Environment:

Samsung Note 3 LTE N9005; 4.4.2; rooted; stock Samsung Italian ROM; I installed PNF root and tried different heartbeats: 5+6, 6+5, 5+5 and many other combinations. Recently I checked the heartbeats again and they had been restored back to Android Stock (16 and 28).

Symptoms:

a) many apps as WhatsApp, Gmail, Skype, eBay, etc, don’t notify me of events in real time and I experience delayed notifications.

b) if I open/launch each of these apps I receive any (all) delayed notifications at once.

c) if I open/launch the app “PNF Root” and go to “Play Services Monitor” all notifications from all the above mentioned apps are received at once.

d) Viber seems to NOT be affected by this problem and it notifies me regularly.

Situation:

a) I have uninstalled and reinstalled all those apps about 10 times, and after every uninstall but before re-installing, I did:

Cache cleaning.

Dalvik Cache cleaning.

Permissions fix.

I logged-out and back into each of the above apps’ accounts.

b) I uninstalled all cache cleaners, memory boosters, app-killers, greenify, etc..

c) I already contacted WhatsApp (and other apps) tech support and followed their instructions to the letter. After a few attempts at solving the problem these tech representatives got fed up and gave up on me, washing their hands of the problem, with the excuse that they do not support rooted devices... as*hol*s! Of course Samsung and Google tech reps were the first to give up!

d) At one point I even installed "hangouts" just to follow to the letter WhatsApp tech support check list which called for some Hangout settings to be modified. Didn't work. Now hangouts is, again, uninstalled.

e) I already posted this same help request a few weeks/months ago on Androidpit, Androidcentral, Android Forums but nobody replied.

My feeling:

It has something to do with "Google Play Services" as the problem affects every app that uses this service and it is resolved once open/launch “PNF Root” and go to “Play Services Monitor”. Unfortunately Google and Google play tech support refuse to help bcs I’m rooted.

Request:

I need help! I've been trying to fix this problem since before Christmas and I have done everything which comes to my mind short of Factory-Reset/ROM re-flash. I read in a couple of other related threads that factory-reset did not solve the problem. And, anyway, Factory-Reset would certainly create more problems than it solves: I would have to figure out all the correct settings which took me months to work out, solve setup issues, account passwords, settings, etc... It's like asking Windows tech support to help you solve a problem and they answers: "re-install Windows"! That's not a fix, it's a new set-up from scratch!

Please HEEEEEELP!
[Android Apps and Games] andQlimax:
Does that happens both under wifi and 3g? What are your operators? I'm in Italy too

Also why the heartbeats have been restored? Does it persist or not?

Thanks
[Android Apps and Games] ascanio1:
Wow, it's Sunday and you still replied!

:o

Thanks! I'm 100% Italian but I've been living in Japan for the past 15 years... better keep the thread in English in case others need to check it up!

1. WiFi is certainly affected but I didn't really notice improvements w/ data: I will verify in the next few days and revert.

2. When I'm in Japan my carrier is Softbank.

3. When I'm in Italy my carrier is Vodafone.

4. Baseband version is stock VJUENC1 (4.4.2).

5. I'm not sure why the heartbeats were restored to default this morning... Anyway, I just checked now and they have not been re-defaulted. They are still 5 & 6 min. I guess that this morning's heartbeat default restore was a one off thing. I'll keep an eye on this too.

I really appreciate your time/effort as Factory-Reset really is not an option. Unfortunately the problem persists.

:crying:

Tommaso
[Android Apps and Games] ascanio1:
Again, thanks for your help.

After a few days of checking, the problem does not seem to occur under 3G but it persists under WiFi.

My operator is Softbank.

The heartbeats have not changed since: 5 min and 6 min.

I would really appreciate your help!

Tommaso
[Android Apps and Games] andQlimax:
How much delay do you have under wifi ?
[Android Apps and Games] ascanio1:
Between a few minutes to much more. All notifications come together once I open Play Services Monitor. I don't know how long before they had been written/sent.
[Android Apps and Games] TapDeck:
Any chance to fix pushs from slack? thx
[Android Apps and Games] ascanio1:
Sorry I don't understand the question...
[Android Apps and Games] TapDeck:
Actually i am sorry. I didn´t read through entirely. Forget about it.
[Android Apps and Games] guimas:
Just wanted to get in this: I have the same problem: LG G3, new, KitKat, rooted. On 3G, notifications work OK, and the Google Play Services show "Connected". On wifi, it shows "Not connected". On the Events tab, it has several "1: Failed connection ev:1 state:3 err:16 net:1"

Whatsapp is affected (if I open the app, it receives all the messages), Inbox too.

Don't know if it is something on my wifi network, or if its on the phone. My last phone a Galaxy S3, worked perfectly on the same wifi network (I had it till two weeks ago)

Thanks for the great app!
[Android Apps and Games] ascanio1:
Hello, did you read my reply? delay under WiFi varies.

However I have confirmed delays of 6 hours with messages/email sent during the night which I received only when I opened PNF root/Play Services Monitor

Your App should NOT require me to open it every time, right? Otherwise I might as well open WhatsApp every time.

Can you help me make your App work on my phone too, please?
[Android Apps and Games] ascanio1:
UPDATE

:

I verified that the delay is

also

with 3G/data. Today I had my phone on data.

At 21:40 I opened PNF root and opened Google Play Services and I received some 14 messages from Viber, Sygis (navigation App), gmail, eBay, etc

eBay: yesterday and the day before;

Viber: 2 hours earlier;

gmail: 6 hrs and 20 minutes earlier

In short, I experience delays of up to a day or so under both WiFi and Data.

Worse of all, today I had opened PNF root and selected Google Play Services, twice.

This means that PNF Root does not work under both WiFi and data.

Please help!
[Android Apps and Games] andQlimax:
what you describe is something really strange..

What you mean that you open Google play services and you received notifications? Just by opening it or you perform other actions?

When you open Google play services monitor, what value do you see in the "initial:" value? What PNF root is to change that value only

6 hours of delay means your phone is not connected to any network or that you have something really broken in push notifications, you can try removing your google account, and then add it back, you won't lost anything

also ensure that you do not have any google services freezed or disabled
[Android Apps and Games] ascanio1:
Yes, just by opening. I am not doing anything else.

"(xx:xx initial: 300s)"

where xx:xx starts at 3:40 and counts down to 1:20 (when it stops).

I attach the image.

I verified and the only frozen apps were:

- stock internet (I use firefox);

- stock messages (I use GoSMS pro).

I will uninstall google account, clean cache, reinstall and update in a a day or so.

THANK you for trying. I really appreciate it.
[Android Apps and Games] ascanio1:
Bad news for me. I removed Google account for 24 hours and rebooted a few times. All contacts etc disappeared which confirms that the account was actually removed. But nothing changed. I still got delayed notifications. I reinstalled Google account and, of course, nothing improved.

I'm really, really frustrated. I missed a work opportunity too, yesterday, as I never received an invitation from a business associate.

I really need to fix this... I hope that you can help me!
[Android Apps and Games] andQlimax:
I can't help you sorry.

Pnf fix delayed notifications, we are talking about delays of 15/30 minutes max!

In your case the problem is not the delay like all other users here, but you don't get notifications at all.

I'm sorry I don't know how to help you.
[Android Apps and Games] ascanio1:
Thanks anyway for trying. I know it's not depending on PNF but on some other phone issue. Looks like Samsung is out and my next phone will be another brand! Any idea which manufacturer is most helpful with its buyers who root the phone? I heard that Sony are even less helpful than Samsung.

hTC? Motorola? Others?
[Android Apps and Games] surferboi636:
So as you can see some of my events go through, but then for the twitter you can see that it says cancelled, why does this happen and how to fix? it is so annoying
[Android Apps and Games] ascanio1:
Hello,

surferboi636 in post 657 shows his screen capture of his PNF working and I can see many Apps listed there (he has problems only with Twitter). On my screen capture of PNF I have ONLY 1 service working: "mtalk.google.com". What does this mean?

Do you know of devices which give less notifications trouble than the Samsung Note 3 (since I have to factory reset I am buying a new phone)?

Tommaso
[Android Apps and Games] chaoscreater:
This app made the battery drain on my phone worse. I'm using a Galaxy S5 running Lollipop. Before I applied any settings, I can see that the default "ReconnectManager" time under "Play services monitor" on my device showed 28 minutes. This is without using Amplify to set the alarms or anything, I'm running on stock Lollipop with no Xposed mods etc.

I then set the settings to 5 mins for both mobile and WiFi and see that the reconnect time for "ReconnectManager" is set to every 35 seconds, which doesn't make sense. The initial time also increase every few minutes or so, I'm not sure what's going on there. I then adjusted the settings to the default for both mobile (28 mins) and WiFi (15 mins), applied the settings but I still get the same result. Reconnect time is still at 35 seconds, and this is AFTER I restarted my phone as well as turning on/off airplane mode.

So then I chose the "Restore default heartbeats" option, didn't fix it either. Now instead of my phone reconnecting every 28 mins, it's now trying a reconnect every 35 seconds or so and none of the options I try will adjust this. I'm running the Root version of your app.

I can see under BetterBatteryStats that the GCM_Reconnect alarm more than tripled compared to the usual stats I get. I have like 7 alarms just for GCM_Reconnect within 1 minute.

How do I fix this??
[Android Apps and Games] andQlimax:
Restore default does remove everything changed by pnf.. So it could be something that has changed server side from Google
[Android Apps and Games] hkla:
It is not related to your app but would like to know you have any idea and can help me on this or not.

My phone so far no problem receiving Push Notification but recent few days cannot receive at all.

To solve the problem, what I need to do is download or update any application from google play store, push notification will work fine again. However once restart the phone, It will not working any more until download or update any application from Google Play.

It seem like the GcmService not start automatically, however it will be trigger after download/update application from Play Store. I check logcat after download / install update app saw the following line :

04-06 14:21:55.615: I/GTalkService/c(3047): [AndroidEndpoint@1106545720] connect: acct=1000000, state=CONNECTING

04-06 14:21:55.830: D/GCM(3047): GcmService start Intent { act=com.google.android.talk.MCS_CONNECTION_SERVICE_STARTED flg=0x10 cmp=com.google.android.gms/.gcm.GcmService } com.google.android.talk.MCS_CONNECTION_SERVICE_STARTED

04-06 14:21:56.015: W/GTalkService(3047): [DataMsgMgr] broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.firstrowria.pushnotificationtester (has extras) }
[Android Apps and Games] pedrazadixon:
I have the same problem on android 4.2.1 and I have not found to fix it...

I have tried to

- clear apps data (google play store, google services framework, google play services)... and nothing

- delete and add again google acount... and nothing

- factory reset... and nothing

- recovery backup (when this worked fine)... and nothing

- clear all partitions and install firmware stock... and nothing

I think the problem must be related to some online google account settings.
[Android Apps and Games] andQlimax:
Something changed on your network? does happen both on wifi and 3g?

How did you test push notifications? Gmail?
[Android Apps and Games] pedrazadixon:
For me, there haven't been changes in wifi networks and 3g; have the same settings as before.

The push nofiticaciones do not work with wifi or 3g (until after download or update any application from google play store)

I tried push notifications with gmail, pushbullet, whatsapp, facebook and others and does not work.

Thanks for your answers and your help in advance.
[Android Apps and Games] hkla:
It automatic back to Normal without doing anything.

My be auto update of Google Play Services fix the problem.

My current version of Google Play Services is 7.0.99 (1809214-036)
[Android Apps and Games] pedrazadixon:
I understand. How long will slow in solving this problem?
[Android Apps and Games] hkla:
I can't really remember exactly, around 7-10 days.
[Android Apps and Games] ssalah75:
I'm having exactly the same issue.

I have Nexus 5, Lollipop 5.1 (LMY47I).

recently, I was having issue in getting notifications for all apps (Lollipop 5.1 LMY47J), I've did the same as above, and the last thing was to clear, install the latest ROM, and the issue is still there.

I downloaded the PNF root, to change the heartbeat interval, and this also didn't fix it.

I noticed that this error is always there

failed connection ev:1 state:3 err:24 net:0

on Google Service Monitor.

This happens on Wifi and on 4G as well.

The only time I'm getting things back to work normally is when I'm connecting to a VPN service. I donno what's the difference between the normal Wifi connection vs VPN over same wifi!!!!!!

This issue is been for the last 2 weeks, I'm becoming disparate :(
[Android Apps and Games] pedrazadixon:
I've been with this problem 1 week and yet I have found to fix it.
[Android Apps and Games] ssalah75:
I donno why suddenly today this issue is not any more on 4g connection, but it's still there with wifi
[Android Apps and Games] Javi22:
My situation is that push notification not come but only if I am with WIFI connection...

The thing is PNF solves the problem: I set 3 minutes wifi, press apply, and all pushes come. But, after a while, It stops working again (maybe just one or two hours later) , whatsapp start to not notify and everything. Then I need to repeat process

With 2G/3G, all works great
[Android Apps and Games] ralf_xda:
I had the same problem since more than a week. No push notifications after reboot, neither on WiFi nor on 3g.

Installing or uninstalling an app fixed it until next reboot.

System is android 4.2.2 with latest google play services and latest play store.

What it fixed for me:

Installing google hangouts! Now gcm push notifications are back, even after reboot.

Since I don't need hangouts I tried uninstalling it but after that the problem came back. So I installed it again and froze it with titanium backup. This seems to work. Don't ask me why. I think this needs further investigation. ;)

What I see is that now the gtalk service monitor is replaced by the play services monitor (you can check it with PNF, available in the play store). AFAIK until now gtalk service monitor was present on android <= 4.2.x and got replaced by play services monitor on android >= 4.4.x

I hope this helps others suffering the same problem since this annoying beast was driving me nuts.

Cheers,

Ralf
[Android Apps and Games] xxlakis:
Thanks for the info.Installing hangouts on 4.2.2 fixed same problem for me too.
[Android Apps and Games] Javi22:
Thanks a lot! I have done it and pushes are fine, but I need more time to test as sometimes it worked and sometimes not...I hope it´s finally fixed, thanks man ! :D
[Android Apps and Games] Layio:
On latest app version root on 5.0.1 I get - Cannot update heartbeats - something went wrong - SU error only position independent executables (PIE) are supported.
[Android Apps and Games] andQlimax:
Do you have the latest superuser?

Which device?
[Android Apps and Games] Layio:
I have Galaxy S4 with stock 5.0.1 and latest SuperSU app. This was work ok on 4.4.2.
[Android Apps and Games] andQlimax:
it should work on 5.x too. can you clear PNF data and try again? or uninstall and re-install
[Android Apps and Games] Layio:
Ok, clear app data helps. THX!
[Android Apps and Games] pedrazadixon:
This has worked for me so far, other fix no hangouts required (root and init.d support required) is described in the link below, http://goo.gl/7nvgrX .

This also work good for me without hangouts installed.
[Android Apps and Games] noranyan:
Works like a charm on my mother's LG Optimus 4X (P990).

Many thanks. [emoji3]
[Android Apps and Games] maximosm:
Have the same problem.Any solution?
[Android Apps and Games] holasholas:
When a I reboot my phone PNF don't receive notifications but when a I press in PNF Root/Service Gtalk Service I receive notifications again. I think that a problem with Gtalk Service when a I reboot. What's the problem?. Thank you.
[Android Apps and Games] holasholas:
I have de solution. The problem is that I delete GTalk from my phone. I intalled the version GTalk.4.0.4-390215.apk, configured my account and I resolved the problem.
[Android Apps and Games] andQlimax:
Breaking!!!

Whatsapp Support page recommend to install PNF: http://www.whatsapp.com/faq/en/android/20887936

:cool::cool::cool:
[Android Apps and Games] x-geo:
wont work in sony xperia z3 with official rooted lollipop 5.1.1
[Android Apps and Games] andQlimax:
Thanks I will check. In the while you can try pnf no root
[Android Apps and Games] xk0niR:
I can´t seem to get it to work on Lollipop 5.1.1

When I click Apply Settings it says "Cannot update heartbeats, something went wrong: Can´t find google app process"

Any Idea?
[Android Apps and Games] andQlimax:
I keep receiving this report, probably something changed with Google play services, not with lollipop.

Anyway if you reboot the phone the heartbeat should be updated, look the countdown in the play services monitor
[Android Apps and Games] xk0niR:
Thanks for clarification!

It does not happen when you click on restore.

Anyway it works, merci.
[Android Apps and Games] Whyzor:
I'd like to suggest that PNF set the heartbeat refresh values to be 2 seconds less than a whole minute. Reason being that most likely carriers round off their timeout values to the nearest minute, and having PNF catching it BEFORE the timeout much more beneficial than AFTER, which requires a 60 second wait for response (which is a 60 second window where TCP connection is disconnected and notifications not able to come in). I think it's also more battery intensive to re-establish TCP connection than a heartbeat refresh. So by having it ~2 seconds before every minute (58s, 118s, 178s, 238s, 298s...etc), it would be more reliable in refreshing the heartbeat BEFORE a likely timeout value.

It seems like Google is *SLOWLY* moving towards an infrastructure where carriers can set their own timeout in the GSF with the local override value on a device, this way it matches the carrier's own network timeout values. Since I'm assuming carriers have short timeouts because they don't want to waste network resources keeping many idle connections. This gives the power to manage network resources to the carriers, instead of Google setting one global value that all carriers obey.

There still could be more intelligent solutions for this, such having an occasional 'calibration' algorithm where every minute the GCM server pings a device, the device increments the minute counter every time it successfully receives a ping, when it stops, then that is the timeout value the carrier or wifi router has set for cutoff. Repeat this 3 times and if all 3 match, then that is the timeout value the device should use as the local GCM override value. If 3 calibrations don't match, take the lowest value to be safest. This way GCM auto-adjusts to the network conditions set by the carrier/router/modems.