yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] philipepi:
PNF
[Android Apps and Games] Snowblond:
Didn't solve my problem. :(
[Android Apps and Games] andQlimax:
Which rom are you on? Probably reflash rom and gapps

Gtalk service monitor its included in Google services framework that is included in the gapps

Something wrong with your rom, post the problem there, someone could help you.. It's doesn't depends at all from pnf, pnf only change some numbers..

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] philipepi:
and what about that app from play that i sended to you?
[Android Apps and Games] Snowblond:
The app shows me the same empty GTalk Service Monitor. :/ The only thing I see is the button "Send heartbeat to server" ..and if I press it, nothing happens..
[Android Apps and Games] Xoib:
Are you using system tuner to mod certain app ?
[Android Apps and Games] Snowblond:
For example? I don't know what you mean.. and btw: I am using CyanogenMod 10.1.
[Android Apps and Games] andQlimax:
Reflash the gapps, did you tried as I said before? Then please post in the thread of your rom.. Since is a rom/gapp problem

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] andQlimax:
how much of you use a mobile heartbeat lower than the wifi one?

I decompiled the GoogleServicesFramework apk, and I found the perfect way to set the 2 hearbeats. In this new way once the 2 hearbeats are set, there is no need for PNF to run and change it every time you switch from mobile to wifi and vice versa...this is perfect..But looking the GSF code, it only work if the wifi hearbeat is lower than the mobile one (otherwise is always used the mobile one)..I'm not sure if use this new way, since this limitation

Also I found a way to manually send an hearbeat that also works for non-root users (in this way I could build a simple app that in backgound send heartbeats at the chosen interval), not sure if work for every android version.
[Android Apps and Games] Xoib:
I use 1min for Wifi and 1min for Cell, so I guess your theory apply too (lower or equal) ?

And yes making an app who just send a heartbeat / the right packet to the correct uri should work for non rooted devices.

Off topic question, but isn't GSF apk compiled with proguard or some anti decompile tools ? If yes, how did you manage to extract a readable code ?

Keep up the goos work ;)
[Android Apps and Games] andQlimax:
ya..only work if wifi is lower than mobile, equal is not ok

sending the heartbeat for non rooted it's easy, now that i decompiled GSF. I just need to send a broadcast intent with a particular string..when android catch that intent will send the hearbeat itself, it seems this string is different for android 2.x and android 4.x..depending on the GSF framework version, but it's not a problem

I also though that GSF used proguard!! Instead not:confused:..Well some classes are not visible, but 99% of code is in clear and readable
[Android Apps and Games] Xoib:
Ok thanks for the clarification, only if wifi is lower than cell, got it.

Off course the broadcast intent for heartbeat, why we didn't think about that earlier ? :P

Good to know about GSF not using proguard...
[Android Apps and Games] c00ller:
Are you suggesting that we do this with the current version of PNF? Or are you suggesting that in a future version of PNF it will automatically be set this way?

Sent from my Nexus 4
[Android Apps and Games] andQlimax:
I mean in future i would do like that probably

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Ditamae:
It's my understanding that the signal status bar icons turn grey when one loses their connection to Google services/servers. This has been true in my experience. When I lose push notifications, my icons turn grey. That's all I meant when I referenced icon color. So, essentially, my problem is that upon reboot I lose push again. I need to uninstall PNF and then reinstall and I immediately regain push. It's very strange. I've read your entire thread here and it would seem that the heart beat should remain after a reboot.
[Android Apps and Games] andQlimax:
Yes, when status bar icons turn grey there is no connection to google services, but to me when I don't have PNF the connection go in timeout, but icons are not grey, because the phone is not aware that the connection is in timeout...PNF eliminate the timeout by shortening the heartbeat interval

If your icon is grey, mean you phone is not able to connect at all to google services..It has nothing to do with heartbeat, when you uninstall and reinstall PNF, at first start it does kill the GSF process, and as cause it will force gsf to reconnect (that's why you see blue icons), but you can have the same effect by pressing "set heartbeat interval now"...But this is not the solution, for some reason your phone does not reconnect to google services..

A question, for how much time the icons stay grey if you do nothing? If you disable and renable net (or swithch phone off and on), does your icons get blue again?

Upon reboot your phone should connect to google services and icons should be blue immediately, that's how works for everyone (with PNF or wihtout PNF), if that is not your case, there is some problem in your ROM, or in your network!
[Android Apps and Games] Ditamae:
Thanks for the reply.

I think it must be a ROM issue. But it began about one week after a clean ROM flash. At first I had zero problems. Then I would notice that when I woke up the phone while at home on wifi, my icons were grey and push was not working. Other than that I had full data access. After some time with the screen on, often after downloading an app or receiving an sms, the icons would return to blue and push would work again. But over a period of about 2 days, the problem got progressively worse. I would lose push for longer periods of time, and then after wiping data from GSF push stopped working over 4G as well. It doesn't matter which network I'm on - they just stay grey all the time. I tried every possible solution I could think of... then I decided to try your app. Immediately the icons turned back to blue and push resumed. It continues to work perfectly until I reboot. When the phone boots back up push doesn't work and the icons are grey. The only thing that seems to work is to uninstall your app, reinstall, and I'm back in business.

Like I said, I've never seen anything quite like this. I can't think of anything I did that could have caused this... in fact, the day it started I wasn't on the phone at all. If killing GSF triggers the reconnection, I would imagine force closing it would have the same effect... but it doesn't. I'm using Slim 4.2.2 - which is a pretty polished ROM. I don't know... could it be a radio/modem problem? I imagine the possibilities are endless. The thing that really baffles me is that I can use all my Google apps even while the icons are grey, yet I don't receive push notifications.
[Android Apps and Games] andQlimax:
You could try removing and then adding again your google account on your phone wihile PNF is disabled, it will re-initialize GSF data with default values..And see if the problem get solved, otherwise I don't have idea what's wrong in your ROM
[Android Apps and Games] andQlimax:
PNF 4.0

Version 4.0, 2013/08/29 :

- PNF now is near perfection, it set the heartbeats in a persistent way using GSF "overrides" table. Once you set the heartbeats, PNF doesn't need to run in background to update it and android will not revert it. PNF anyway will still run to change the heartbeat only in case you set a wifi heartbeat greatest than the mobile one, because of a GSF limitation.

- Added setting to restore android default heartbeat. MANDATORY if you want to uninstall PNF.

- After the update press "Set heartbeat intervals now"

Some notes:

- The heartbeats are set on GSF "overrides" table, so the properties (heartbeats) set in there are never modified by android. You can also uninstall PNF and heartbeats will stay there forever. Anyway I recommend you to keep PNF for future updates, and possible bugs fix.

- PNF anyway still need to adjust the heartbeats in the particular case where you set a wifi heartbeat > mobile heartbeat. This case seems not handled by GSF, so PNF need to re-set it when you switch network. So I recommend to set a mobile heartbeat greatest than the wifi one (or equal values), in this case PNF doesn't never run in background and GSF never have to be killed to reload values.

- If you want to uninstall PNF and want stock heartbeats for some reason, don't forget to choose "Restore android default heartbeats".

- GTalk service monitor display the correct heartbeat type if you set a mobile heartbeat > wifi.

Let me know in case your heartbeats combination is not set correctly!

Don't forget to give 5 stars and donate if you can! ;) :good:

Over 35.000 downloads and counting!
[Android Apps and Games] ClearBlue7:
Thanks for the Update! Works perfect!

Good Work mate :)
[Android Apps and Games] gajira:
I have some issues on Nexus 4 CM 10.2, it seems it's not working. I set 2 minutes in wifi but I had 15 minutes delay on whatsapp. I'm monitoring SuperSU logs, does PNF register a log every time it heartbeat? If it does, it's not working properly, because if I set the heartbeat manually using the function in the app I can see the notification in SuperSU log, but there aren't notifications in the log for the automatic heartbeat set up.

Any idea or advise?
[Android Apps and Games] andQlimax:
Hi,

No, PNF does NOT run every 2 minutes. It's only set the heartbeat once, then android will send it every 2 minutes.

To see if the heartbeat is set correctly, just open GTalk service monitor and check if the heartbeat is set to 2 minutes.

About whatsapp I just updated the FAQ on the post #3

Q: Why Whatsapp messages are still delayed sometimes?

A: Whatsapp, and some others apps, don't completely rely on google push service (GCM). Those apps start their own connection when you open the application, and the messages come through this connection. The heartbeat is sent by android only on the push connection on the port 5228, and so it only keep-alive that particular connection. Blame those apps that doesn't have a keep-alive mechanism for their connection or that doesn't use full push messaging.

A workaround for whatsapp is to swipe it away from the recent apps when your finished a chat session. In this way it's connection is dropped and you will be notified of new messages through google push notifications.
[Android Apps and Games] WelCoMe2DeT:
I like it, thank you!
[Android Apps and Games] andQlimax:
The old google thread: https://productforums.google.com/forum/#!msg/mobile/X0j2BgCVQjI/jkpUW0aI3uIJ has been closed. They reorganized the google forum.

So I opened a new one in the new section here: https://productforums.google.com/fo...onnecting-to-networks-and-devices/fslYqYrULto

Let's never give up! :good:
[Android Apps and Games] drituss:
Thank you so much for your hard work, andQlimax!

It's seems that they are not going to change it shortly. I think that by the time Google fix it, I will be already on a different carrier without this ridiculous delay...
[Android Apps and Games] andQlimax:
PNF new version 4.1

Minor version:

Version 4.1, 2013/09/12:

- Fixed heartbeat not set in some rarely cases;

- Link updated to the new google forum (old one was closed);

- Added italian translation;

Attached you can find the string.xml (renamed as txt since can't attach xml)

Translators are welcome, just reply to the thread with the traslated file..I will include in future app version

Feel free to improve the english translation as well if needed since I'm not native english :)

When I will have more time I will probably do a non-root-user version as well
[Android Apps and Games] pedromarga:
Could you attach also your Italian strings.xml so I can keep a standard translation? (for example, should I translate "heartbeat"?)
[Android Apps and Games] andQlimax:
Hi,

No, leave the word "heartbeat" untranslated.

Attached the italian translation.

Thank you
[Android Apps and Games] kempi46:
Thank you

I just really want to thank the ones who created this awesome app. This really is the only one that fixed my push notification problems since the day I was using a Xperia Mini. Now I'm on a Nexus 4 and still delayed notification persisted. But with this. No more delays for me. Hope you keep it up
[Android Apps and Games] red de0392:
Will my push notifications for whatsapp work...if i follow this thread

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

And disable gtalk services ?
[Android Apps and Games] andQlimax:
sorry for late reply..did forget to reply this

from what I see push notifications should continue to works disabling those gtalk services, but if you get some problems, you know what is the cause, anyway I don't know how much it worth, on my phone the battery drain when it is idle is very very low..so I wouldn't do that
[Android Apps and Games] jiggyk:
Awaiting your app for non root users... :)
[Android Apps and Games] andQlimax:
Ya..I have yet to start..Not much free time

But once I found the time it will be fast
[Android Apps and Games] Xoib:
Hi,

Do you know if recently Google Play Services have been upgraded ? And within they updated the GTalk Service Monitor binary ?

Because look at my screenshots, I just checked today, and there is no more the usual information like heartbeat and cd2m / gcm information.

Thanks.
[Android Apps and Games] andQlimax:
My didn't change..Probably just a connection problem? If you reboot the phone or toggle the wifi it doesn't back to normal?
[Android Apps and Games] Xoib:
I tried, wifi on/off, using 3g/2g networks. That's weird.

Do you know if I can check heartbeat values by getprop command or something through adb ?
[Android Apps and Games] andQlimax:
To check the heartbeat values, you can install "SQLite Debugger" app and browse the database file data/data/com.google.android.gsf/databases/gservices.db, then look on the table "overrides" to check the heartbeats set from my app, or "main" where there are the android defaults
[Android Apps and Games] mattforchi:
Appreciate your work dude but my phone isn't rooted (neither is my gf's nor are my friends' phones). If you could make a non root version I'd probably be the happiest man in the world and I would donate on the spot!
[Android Apps and Games] andQlimax:
I started developing the app, in a week or two I should release a first apk ;)

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] mattforchi:
Wow, perfect. Thank you! Keep us posted!
[Android Apps and Games] Matudoublet:
Thanks

:good:
[Android Apps and Games] Xoib:
Thanks.

By the way, I attached a new screenshot. Worse than before, I don't know what is happening to my phone but I don't do crazy system things...
[Android Apps and Games] andQlimax:
did you disabled some services from autostart or something?

Maybe something in your rom screwed..You could try to remove your google account, then re-add it. Otherwise maybe a wipe is necessary if you want back your gtalk monitor
[Android Apps and Games] Xoib:
The only services I disabled are Analytics related services and some location related services.

I'm on stock 4.3 rom.

I can of course wipe or re setup google account but if I do I will not know the main cause of this sudden `problem`.
[Android Apps and Games] andQlimax:
well check the services disabled..

i'm on stock 4.3 also, never disabled services and never had a problem with gtalk service monitor
[Android Apps and Games] gulati.akshay10@gmail.com:
i have the same problem, only send heartbeat interval option in service monitor

I guess Google Play services updated to v3.2.66 update did something, coz i flashed it on 4th october on my PA 3.99 RC-2 and on 5th i had this problem, reflashed an old version but Play service version remains the same.

Waiting for kitkat, would flash it clean next.:D
[Android Apps and Games] andQlimax:
I have 3.2.66 and everything is ok

Inviato dal mio Galaxy Nexus con Tapatalk 4
[Android Apps and Games] andQlimax:
Yes, you can set wifi 15 minutes, and mobile 5 minutes for example
[Android Apps and Games] Xoib:
Well I might be not the only one. :angel:
[Android Apps and Games] nurderbvb:
Same here. GTalk Service Monitor shows nothing. I'm on Stock 4.3 with Franco. Google Play Services 3.2.66

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Android Apps and Games] andQlimax:
maybe something is changing with the monitor..but seems strange since I still see the full monitor
[Android Apps and Games] fozzie:
Same here (empty screen). Stock 4.3 (JWR66Y), Franco kernel, Google Play Services 3.2.66, Hangouts 1.2.018 (as that replaced Gtalk, so may be relevant).
[Android Apps and Games] andQlimax:
Same as me, except franco kernel..I'm on a galaxy nexus anyway

gtalk service monitor is part of Google Services Framework, my version is 4.3-776638..What is your?

after you open gtalk service monitor, if you open CatLog app do you see any error or something?

I see the all the debugs information of gtalk service
[Android Apps and Games] fozzie:
GSF is the same as you.

Searching logcat shows only what's in the attached. You can see where I opened it up twice. When i try Dump to log I get "Not Running".
[Android Apps and Games] andQlimax:
Thanks..I think some changes from google are in progress, and slowly will roll to everyone..just a theory..not sure if affect only the monitor or also the heartbeat values

with SQLite Debugger you can check the GSF databases, and check if the heartbeat are still there or not
[Android Apps and Games] fozzie:
Remind me the path of the db please, I've forgotten. Thanks.
[Android Apps and Games] fozzie:
I've got the values in the attached screenshots.
[Android Apps and Games] andQlimax:
The db is in /data/data/com.google.android.gsf/databases/gservices.db

Then there is the "main" table to look for the android defaults heartbeats and the table "overrides" to check the heartbeats set from my app

You can execute this query to filter the heartbeat values: SELECT * FROM main where name like '%heartbeat%';

Thanks

EDIT:

ok I saw your heartbeat in "main" are same as my

but in the table overrides i only have the "heartbeat" values..In particular you have "gcm_secure_port" set to 5228 and "gtalk_secure_port" set to -1 (disabled)

Probably google is going to finish the migration from the old c2dm based on gtalk services with the new GCM service..That's why gtalk service monitor is not active anymore

You could try restoring the default heartbeats with my app (that only remove the heartbeats values in the overrides table), and then see if you still experience delays..To understand if google finally fixed it or not
[Android Apps and Games] andQlimax:
Everyone with the empty gtalk service monitor, is invited to press "restore default heartbeats" from my app and checks if the push notifications aren't delayed anymore during the next days or not (gmail, hangouts, etc, not whatsapp since is not totally push)

Let's hope google fixed it
[Android Apps and Games] fozzie:
Thanks. I've done that and am left as I think you suggested, with the ones in the screenshot.

So at some point in time, those overrides left should all disappear?

Out of interest, do you have them (some or all) in main now?
[Android Apps and Games] andQlimax:
The values left on overrides, maybe a day will be included in the main database

Which one in main? I have the same heartbeats as your, but not the ones you have in overrides

Inside Google Services Framework there is the google checkin mechanism that about every 12 hours re-download and set all these values (usually only the ones in main till now), that's why them could change at every moment
[Android Apps and Games] fozzie:
I was just wondering if say gcm_secure_port was in main?
[Android Apps and Games] andQlimax:
Not..nothing about gcm
[Android Apps and Games] andQlimax:
Do you have other 'gcm_%' values in main?

Inviato dal mio Galaxy Nexus con Tapatalk 4
[Android Apps and Games] fozzie:
Just:

gcm_enable_connection4 =1
[Android Apps and Games] nemanja066:
Same here... :cool: But, Push Notification working OK without problem. Seems, that problem solved, now :D
[Android Apps and Games] andQlimax:
Cool..I set that property together with gcm_secure_port=5228 and gtalk_service_port=-1, now the monitor don't show anymore the heartbeat countdown, but some other informations

I guess there is a property to completely disable the monitor, which is the one that show you an empty monitor probably, can you take a screenshoot of your "gtalk_%" values inside main?

Thanks a lot :)
[Android Apps and Games] fozzie:
Here you go. I couldn't see anything obvious.... unless it's removed altogether.
[Android Apps and Games] andQlimax:
Yeah..Don't know

But for the people with empty gtalk monitor, there is a new monitor: just dial *#*#GCM#*#* (well it was obvious :laugh:)

There is still an heartbeat being sent at some interval..still not clear if it is dynamic or at fixed rate like the old one

In the logs with PNF not active I saw an heartbeat timeout before..Not good, let's see
[Android Apps and Games] Xoib:
Hopefully I did not wipe and re install for this false problem ;)
[Android Apps and Games] nurderbvb:
Me 2 :D

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Android Apps and Games] andQlimax:
PNF No-Root BETA v0.1

PNF No-Root BETA v0.1

This is the first BETA of PNF No-Root (for people with no rooted phone). You can start using it and give feedbacks, it should work fine. Choose the heartbeat values and activate it.

In the next days I will do some additional test, and then will create a new thread and I will publish to the Play Store.

I'm not sure about battery draining, it should not be terrible, but not as good as PNF root version.

Enjoy! :)
[Android Apps and Games] jiggyk:
Have tried it on my wife's unrooted phone; seems to be working well.

Whatsapp seems to have a delay of about 30 to 60 secs on 3G. But whatsapp almost always gives that delay with my rooted phone as well.
[Android Apps and Games] jiggyk:
GTalk monitor (*#*#TALK#*#*) shows heartbeat interval of 28:00 on the un-rooted phone. Is that normal?

The notifications for Hangouts seem to come in instantly, though.
[Android Apps and Games] andQlimax:
Yes the android heartbeat is untouched with PNF no-root version

The app only invoke an activity that will trigger the heartbeat at the value you specified, you should notice that on gtalk service monitor the counter never go over the value you specified, since this counter is reset every time an heartbeat is sent

Did you noticed particular battery drain?

Thanks
[Android Apps and Games] jiggyk:
OK, thanks for your help.

I have not been able to gauge the battery drainage by the app because the phone was used much more than normal during the last 10 days or so, including Skype, Youtube and web surfing! That in itself drained out a lot of battery! :laugh:

Though I have not noticed anything abnormal, I will let you know within the next few days.
[Android Apps and Games] jiggyk:
Hi,

I un-installed the original PNF from my rooted phone and installed the new beta version. I do not find any difference to the battery drain and seems to be working fine.

Maybe you can consider making a universal app for rooted as well as un-rooted phones.
[Android Apps and Games] whyalwaysme:
I have similar problem like [MENTION=332323]fozzie[/MENTION] as mentioned above. So i have also restored the default heartbeat but still no luck.

Any suggestions how to bring back my push notifications?
[Android Apps and Games] andQlimax:
Per

There is no problem in push notifications, what has changed is just the monitor.. Dial *#*#GCM#*#* to see the new monitor

If you don’t need my app, just press "Restore default heartbeats"

Inviato dal mio Galaxy Nexus con Tapatalk