yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pieterkeesdejong:
I've installed CM 10.1 just last week, before that I was always on stock Android 4.1.2 and I also had the notification problem. PNF fixed this.

However, as I also already emailed the developer, I've just switched to CM 10.1. I've also got the problem with CM 10.1, but PNF doesn't seem to fix it this time however. I've got the exact notification delay as earlier with stock android and without PNF on Wifi. On cell it works fine.

The developer mailed me: "If PNF is working you should see on GTalk Service Monitor that the heartbeat interval is the one you set. If the heartbeat is set, then there are some other problems, different from the heartbeat, that cause delay problems.

A common problem is the wifi that disconnect while the screen is off. In this case my app can't help. You can check if the wifi settings on your phone are correct, check wifi sleep policy to never sleep, wifi optimization to off, etc, if that still not help, you can try to flash an other kernel."

Made sense to me. So I checked the heartbeat interval, and it was set according to my settings. So in principle it should work, but it doesn't. I checked my wifi settings, and wifi is always on also when my screen is off. Furthermore, I've switched of wifi optimization (feature I didn't have with stock android).

So I did some more research and I've noticed I also get the "no heartbeat alarm set" when the timer has counted of to zero minutes. Shouldn't I get another message after the timer counted to zero? See the attachment.

Also, I've noticed the 'heartbeat type' is 'cell', shouldn't that be 'wifi' or something like that?

It could ofcourse be that I'm experiencing other problems with wifi and push messages, but it feels exactly the same as the previous problems I've experienced on stock android and which PNF could fix.
[Android Apps and Games] andQlimax:
The only thing i can think is that maybe there is a bug in the cm kernel for some recent Samsung devices. It probably retaled with wakelocks when the device is in deep sleep. GoogleServicesFramework use a wakelock in order to handle the heartbeat alarm set even when the device is in deep sleep.

You could try to report that bug to cm issue tracker, if that bug is reproducible also with a clean installation and without other app installed (also without pnf installed ).

Or you can try other kernels and see if that problem get solved.

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] pieterkeesdejong:
Thanks for your reply. I'm going to check it with another rom to see if the problem persists.

One question though: Should I get the message "no heartbeat alarm set" after the timer has counted down, or should I get another message?
[Android Apps and Games] andQlimax:
It should show "Next heartbeat alarm will trigger in" with a countdown starting from 5 minutes (or the heartbeat value you choose)

After the countdown end, after a minute or less it should start again from 5 minutes.

If the countdown doesn't start, the hearbeat network packet is not sent, and then the push connection will time out after a while.
[Android Apps and Games] pieterkeesdejong:
The countdown works just fine, it starts from 5 minutes and then counts down. So:

"Next heartbeat alarm will trigger in 4:30" (for example)

But then, after the timer had counted down to "Next hearbeat alarm will trigger in 0:00," I get the forementioned message "no heartbeat alarm set." And then the counting down starts over from 5 minutes. Is that normal or abnormal?

That's on wifi, always. I haven't checked it on cell, will check that too.
[Android Apps and Games] andQlimax:
that's completely normal

I though it stay to "no heartbeat alarm set" forever.. if after a while the countdown restart then everything is working perfect.
[Android Apps and Games] zip1989:
Great work!

I can not donate. Is this an app problem?
[Android Apps and Games] andQlimax:
Thanks.

I see other people did donate successfully.. I don't know if a temporary google wallet problem or if your credit card expired or something

You can check that here: https://wallet.google.com/manage/#paymentMethods:

Maybe try later, otherwise its ok ;)

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] zip1989:
I had just bought a premium app a few minutes before. So I thought it is a problem of the app.

After a few hours I could donate.
[Android Apps and Games] gajira:
PNF worked perfectly with the nexus 4 stock kernrl. Now i'm using Franco kernel band I have issues with push notifications even with PNF. Anyone with this configuration? Andy idea to solve IT?
[Android Apps and Games] saiz136:
Ok. I will definitely try this! Good work! Thumbs up for the idea. Another thumbs up if it's working as it should. :thumbup::thumbup:

Sent from LG Prada 3.0 P940 CM10.1

My Colorscreen

Tabbed with Swipe Settings and Emoji Keyboard for P940 CM10.1 ROM
[Android Apps and Games] salatiel:
[MENTION=2790445]andQlimax[/MENTION] , i don't use you program but reading your report i understood where the problem lies.

To fix i just added a trigger in the database:

CREATE TRIGGER push_fixer AFTER INSERT ON main for EACH row

BEGIN

update main set value=300000 where name LIKE "gtalk%heartbeat%";

END;

and forced the first change manually by running :

update main set value=300000 where name LIKE "gtalk%heartbeat%";

and rebooting once.

I made this change several days ago and still the timer is correctly at 5 minutes.

Maybe you can use this in you app to avoid the monitoring.

I tried to use the trigger AFTER update but it didn`t work, so i suppose that whoever resets the value, it actually deletes the row and insert a new one.

hope it helps.
[Android Apps and Games] andQlimax:
Thanks..That's very interesting..I know triggers on SQL databases, even I didn't really think to use triggers on android database.

I will do some tests on that.

Anyway, the "monitoring" problem from PNF is perfectly solved in the latest version of the app since it use android intent filters to intercept and get itself awakened only when the heartbeat is reverted by android and when the connectivity type change; allowing, in this last case, the user to set 2 heartbeats based on the network type, which is not possible with a trigger.
[Android Apps and Games] Renecek:
Hello, is there any way to use it without Root in stock firmware please?
[Android Apps and Games] andQlimax:
I would have done that already, if there was a way :)

You can still change router / carrier

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Drizzy xS:
Tried this app still got this problem any help?
[Android Apps and Games] andQlimax:
Hi, check if your phone loose the wifi connection while the screen is off..that's is a common problem that is not solved by my app

I don't know what you mean with the attached screenshoot
[Android Apps and Games] Drizzy xS:
Nope definitely not turning off even if it was 3g would turn off I don't understand it, basically what's happening is if I go off whatsapp or go on standby for more than 10 minutes whatsapp will lose connection to the servers and I won't be able to receive any messages until it reconnect where I usually have to toggle airplane mode to get it to reconnect
[Android Apps and Games] andQlimax:
if it only whatsapp the problem, then it happen also to me..Sometimes it behave strange
[Android Apps and Games] pro.aggro:
Nexus 4 with ParanoidAndroid always says: "Can't update heartbeat, do you have root?"

And a second later, it says "superuser for pnf granted" but the heartbeat time is not changed. Any suggestions?

Root is enabled ;)

Sent from Nexus 4 powered by PARANOIDANDROID
[Android Apps and Games] andQlimax:
Try to remove PNF from the list on superuser app, then open PNF again, press apply hertbeat now and accept superuser again and select always allow
[Android Apps and Games] pro.aggro:
Oh sorry, I have tried this already! Same message.

Sent from Nexus 4 powered by PARANOIDANDROID
[Android Apps and Games] andQlimax:
Hmm..It's strange..A lot of users use it on a nexus 4, so maybe there is some problem with root on your device

Try to remove it from superuser list, then uninstall and install PNF again...I don't know
[Android Apps and Games] Kitschki:
Trying to open Gtalk service monitor makes it say you device does not have gtalk monitoring. It used to work before though.. I didnt flash anything
[Android Apps and Games] andQlimax:
That's pretty strange, but since my app hasn't changed, then something changed on your phone. If you open it manually from the dialer with *#*#talk#*#* does it opens?

Did you flash some gapp package?

On my phone its open as usual

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Kitschki:
Dialing doesnt work either and no i dont think so
[Android Apps and Games] andQlimax:
If from the dialer doesn't work either, something happened with Google Services Framework app.. Do you see it installed on your all app list? Check if you didn't disabled it

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Kitschki:
Its not disable.. Does this actually have a solution? I tried reinstalling gsf and have been searching for a solution for about 3h..
[Android Apps and Games] andQlimax:
Why did you tried reinstalling gsf?

Anyway you could try to clean gsf data, remove your Google account, readd it, reboot and try again

I don't know what happened

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Kitschki:
... I magically fixed it by enabling EVERYTHING in autostarts..
[Android Apps and Games] isotoper:
Hello,I have a simple question -

As described here :

https://productforums.google.com/forum/#!topic/mobile/X0j2BgCVQjI[126-150-false]

--> google engineers are working a long period of time in order to resolve this issue and didn't yet succeed. So, are you sure this app really knows the answer and Google specialist doesn't ?

Just an innocent question , really.

Thanks.
[Android Apps and Games] andQlimax:
Hi,

The problem, obviously, is not that google is not able to fix the that

The problem is that google don't know if that is a good solution, because shortening the heartbeat interval for all android usesr in the world, means that tthey will receive a massive amount of network packets on their servers

and also, keep in mind, that is not a google problem, it's specific to some carriers / routers ..so I don't know if they want to put a workaround inside android to fix other faults

I think google will never release that kind of fix, their are probably valutating if there is some other solutions to keep the connection alive without sending to much heartbeats, or leave everything as is now
[Android Apps and Games] isotoper:
Thanks.
[Android Apps and Games] jiggyk:
I am sure that Google do know the solution, but for some unknown reason, are not fixing it.

How else can one explain Blackberry OS getting instant notifications for ALL apps, including facebook, whatsapp, etc.
[Android Apps and Games] andQlimax:
we don't know if blackberry have problems also on some routers or carries

also android get instantly push notifications on averare carrier/routers

for example I don't have any problems with my mobile carrier, notifications always instantly even without PNF...I have delays only with my wifi router
[Android Apps and Games] jiggyk:
There are apps like wechat and kik messenger which deliver messages instantly on Android, irrespective of whether you use PNF or not, both on wifi as well as mobile networks. I have personally used them (because my wife does not want to root her phone). I suspect they have an internal pinging mechanism.
[Android Apps and Games] willowpc:
Razr i

All time when i press "Set heartbeat intervale now " show this message: Can't update heatbeat, do you have Root ? and yes, i have root, my device is a Razr i, what's the problem ? Thanks, sorry for bad english, i'm from Brazil.
[Android Apps and Games] FuTChY:
Hello,

Thank you so much for the app, it was working very very well with my Xperia Arc running CM10 but now I'm on Galaxy note II rooted stock rom ( Android 4.1.2 ) with Perseus kernel, and the app is not performing well as it used to do before.

I get late notifications on facebook all the time and sometimes I don't get them.

I'm setting both hearbeat intervals to 5 min. Any recommendations please ??
[Android Apps and Games] andQlimax:
You can check if the app is working by opening GTalk service monitor, if the heartbeat is set to 5 minutes, the app did its work..maybe there is some other problem depending from facebook..I dont know
[Android Apps and Games] FuTChY:
The heartbeat is set to 5 min. yes. but the counter (the hear beat alarm will trigger in: ) doesn't continue counting, sometimes it reaches 04:00 and then it says "no heart beat alarm" then it start over and keep counting down from 05:00 again.
[Android Apps and Games] Xoib:
Hi, did you already seen this in your log when testing :

08-12 14:07:23.131 21337 21337 D GCM : Ignoring attempt to send heartbeat on dead connection.

08-12 14:08:23.215 21337 21337 D GCM : Ignoring attempt to send heartbeat on dead connection.

08-12 14:09:23.279 21337 21337 D GCM : Ignoring attempt to send heartbeat on dead connection.

08-12 14:10:23.353 21337 21337 D GCM : Ignoring attempt to send heartbeat on dead connection.

It's a test with 1min heartbeat.
[Android Apps and Games] c00ller:
Can anyone comment if this is necessary in android 4.3?

Sent from my Nexus 4
[Android Apps and Games] andQlimax:
Thanks.. I will look at it, happening to me also, but it's something happening lately probably on 4.3

It's seems a normal handling of the heartbeat, probably when the connection is lost..

Anyway a 1 minute heartbeat is not recommended.. 5 minutes should be ok, you will receive notifications instantly NOT every 5 minutes like some people think.. Try 5, 4, 3, even 2 is better than 1

Yes still necessary currently.. Nothing has changed regarding the heartbeat interval timing

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Xoib:
The fact is my ISP french router drop the opened tcp channel/pipe after ~ 2 min of inactivity. So I have to set 1min heartbeat. It doesn't drain battery so I don't care for the moment.

But anyway, even in my work place, with a good cisco router and no notification delay and a 5min heartbeat I get the message that I told you, so it's very weird. I came to ask myself if the heartbeats are really sent or something with this kind of log.
[Android Apps and Games] andQlimax:
Ok, that makes sense in that case

About the logs, tomorrow will do some test to see what happening

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] andQlimax:
From a first check the heartbeat is still sent, even that strange message on the logs

To test it I reverted to the stock heartbeat, and even that "ignoring send heartbeat" log, the heartbeat is sent because it was waiting the ack, because it went on timeout, since the stock 15 minutes heartbeat is too high for my router

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Xoib:
Thanks for trying to understand with me.

Hum that might explain yes, but to confirm your theory the "WaitingForAck" should be true in the Gtalk Service Monitor (so in gservices.db) but it's set to False. So that can't be related to the heartbeat waiting for the server ack.

So if you have another idea.
[Android Apps and Games] andQlimax:
WaitingForAck did become true in that test with an high heartbeat, 15 minutes.. When you see waiting ack true it's already went in timeout, infact it wait 1 minute for the response, but it doesn't arrive

Instead when you use a short heartbeat, 5 minutes in my case, the response after the heartbeat is sent is instantly because the connection is alive, and you don't see the waiting for ack

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Xoib:
Ok thanks for the clarifications !
[Android Apps and Games] hhp_211:
Is Verizon voicemail considered a push notification that your app handles?

I searched but did not see any reference to VM or Verizon?
[Android Apps and Games] andQlimax:
I don't have idea about verizon voicemail, but I don't think it's push.. It probably send you a text message? Search on Google, probably you need to enable notifications from your voicemail.

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] M3wThr33:
I noticed I wasn't getting push installs from the Google Play Market on my browser anymore. Looked into this... C2DM works fine, but it shows I've never sent a D2CM... any possibility that's why Google Play Market has no recollection of my device?
[Android Apps and Games] andQlimax:
D2CM is a device to cloud message, so it just means in the time monitored your phone didn't send a push message.. Its normal

The problem is not that you was not getting push install from the play store web at all, but that you was getting it some time later probably, my app make push to be instantly, so you get it just soon

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Ditamae:
Thank you so much for this handy, well explained, little app. Upon launch I immediately saw a connection with Google services. I'd been staring at the dreaded grey notification icons (both on WiFi & 4G/3G) for 36 hours! Never experienced this issue and it appeared to come out of nowhere. After hours of trying to track down a solution, I finally decided to give your app a try... so glad I did.

Edit:

I encountered some strange behavior about 12 hours after installing PNF. I booted into Recovery to create a backup and upon rebooting the system, my status signal icons were back to grey. I tried toggling PNF's activate switch, but nothing changed. Also tried enabling the "set heartbeat intervals now" option. Still nothing. I was able to uninstall the app, reboot, and then reinstall. The moment the app was installed - my icons changed color, indicating a connection with Google services. Is this typical or normal behavior? Do you have any suggestions other than uninstalling PNF each time I reboot?
[Android Apps and Games] Wossner:
I m trying not to use PNF on my 4.3 gnex and notifications are behaving well. I came here to ask if in 4.3 heartbeat issue was solved but you have already answered. This is somehow a mistery

Before 4.3 I was PNF dependent because of high delay of notifications and lost of mobile connection while sleeping.
[Android Apps and Games] rkhighlight:
Works great and helped a lot. Thank you!
[Android Apps and Games] andQlimax:
I don't know why your icons are grey, that's not normal.. My are always blue, even without pnf

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] andQlimax:
Pnf does not solve problems with lost of network connection, so I don't know why was working for you before

Pnf solve a connection timeout, not full disconnection from the network

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Wossner:
Maybe something has changed on the mobile operator side (h3g Italia). Could it be?
[Android Apps and Games] Snowblond:
Hello.

For some reason, I see THIS in my GTalk Service Monitor. I didn't change anything and it worked before. After a while the icon turn gray and push notifications aren't working properly anymore.. what can I do? :/

Best regards,

Christina
[Android Apps and Games] Kitschki:
Have you by any cgance edited the autostart settings of your google services framework app?

---------- Post added at 02:19 PM ---------- Previous post was at 02:18 PM ----------

Have you by any chance edited the autostart settings of your google services framework app?
[Android Apps and Games] andQlimax:
Hi, that related to something you changed in your rom, in your Google account settings, in your gapps, or in your wifi network like closed ports or firewall.

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Snowblond:
I didn't change anything as far as I know.. :/ What can I do about it?
[Android Apps and Games] andQlimax:
Did you tried a reboot of the phone already?

If doesn't work, then remove your Google account and add it back

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Snowblond:
Yes, I rebooted my device several times. I will remove and readd my google account. I hope it works..

EDIT: It didn't work. :( I deleted my google account, added it again and then restartet my phone. The GTalk Server Monitor is still empty.
[Android Apps and Games] andQlimax:
I don't have idea..It's something related to your ROM..Try looking logcat and post the problem in your phone xda section
[Android Apps and Games] philipepi:
Yesterday I was receiving notificaitons right on time, today not.

I notice that when I entered on Gtalk service monitor, nothing appears, only 1 button ( Send heartbeat ),

and than i reboot my phone and gtalk services info appears again,

But my notifications are not arriving like yesterday, why?

Should I uncheck Wifi Optimization?

My PNF settings are:

Active CHECK

mobile heartbeat interval 5 min

wi-fi heartbeat interval 5 min

my root is ok
[Android Apps and Games] andQlimax:
When you see only one button in gtalk service monitor, mean the push connection is not active..Same problem as the previous user, it doesn't not depend from pnf

It never happen to me..are you on stock rom or some crap custom rom with gapps problem? this second case could explain why

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] philipepi:
i'm using this rom

http://xdaforums.com/showthread.php?t=2385619

with franco kernel

Why sometimes messages arrives on time, i mean, im with another smartphone sending to me some whatsapps msgs,

sometimes it took 10 seconds, sometimes immediately, others 1 minute or more.. =(

in gtalk services shows me 5:00 minutes heartbeat and counting down..

and, what is this? is it a problem?

now that part

Conn #(0)

connection uptime 05:17

is 16:35 and increasing
[Android Apps and Games] philipepi:
so... i've read ALL the topic, and man.. you are so patience .. includede me, asking questions that you have already answered hehe, sorry about that.

now I know about whatsapp sometimes uses push notificatiosn and sometiems not

i know that your app is working since my intervals are counting down on gtalk services information

but what i dont understand and probably you either ... yesterday was OK, and in this morning ive rebooted and after this.. got delayed notifications again heheh.

i give to you 5 stars on playstore.

thanks for you help
[Android Apps and Games] andQlimax:
From the screenshot you post before it seems your phone lost wifi connection frequently, since there are 3 connections, the first 2 failed because of a "connection closed " (which is wifi out of range or your phone lost network while screen was off)

While the connection is interrupted, you don't get notifications, that's explain the delay, the wifi lost while screen is off is a common problem affecting some phone and rom in combination of some routers.. Me included..

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] philipepi:
unfortunately there's nothing we can do it about i guess.. where I work we use router RUCKUS with security wpa2 enterprise with 802.1x ( need to install digital certificate ) and works pretty well..

here in my house i have 2 AP ( tplink and linksys wrt54g ) and both i got these delayeds..

thanks for your help man
[Android Apps and Games] Snowblond:
Sorry, I didn't see your post for some reason. :o No, I didn't change it. I wouldn't even know how to change it. The problem is still present..
[Android Apps and Games] philipepi:
Here when i had this problem, I rebooted my phone and it returns OK.. It occurred when I press 'Set heartbeat intervals now' and goes to GTalk service monitor. You have to wait some to enters in gtalk service monitor.
[Android Apps and Games] Snowblond:
Rebooting didn't help in my case. :(
[Android Apps and Games] philipepi:
and what if you try to force stop, clear data/cache and uninstall.

and re-install.

also, install this one

https://play.google.com/store/apps/details?id=com.roy.gtalkinfo

and see what appears for you
[Android Apps and Games] Snowblond:
I will try that. But which app should I uninstall and re-install?