Do you have delayed push notifications with Gtalk, GMail, Whatsapp, Facebook, etc?
This app its for you! Its FREE and have NO banners, please consider a donation from the app.
Please note this app does NOT solve wifi / 3g disconnection problems.
Setting the hearbeat interval to 5 minutes only means android will check the push connection every 5 minutes, NOT that you will receive push notifications every 5 minutes. Read below.
This app ONLY change a NUMBER inside GSF android database, read below, NOTHING ELSE.
*** How to use?
Install, accepts superuser permissions (set always allow, optionally disable superuser notifications), enjoy.
* The problem (read this for better understanding):
Apps like Gtalk, GMail, Whatsapp (partially push), Facebook Messenger, etc, use google's push service through a TCP shared connection on the port 5228 between your phone and google servers.
To keep this connection alive, android use a periodic HeartBeat (a small network data packet) which is used to avoid the connection timeout. Unfortunally this HeartBeat, by default, occurrs only every 15 minutes on wifi and every 28 minutes on 3G.
What may happen for most users is that the wifi router or the mobile carrier can automatically close/terminate this connection after some SHORT time of inactivity, for example when you are not sending / receiving any push notification.
For how the push notifications works, your phone is not aware that this connection was externally closed, so this is the reason why you will have no push notifications untill this connection get re-enstabilished by android, when the next HeartBeat is sent.
* The solution in my app:
This app only update this HeartBeat Interval (stored on a database inside android data partition) to the value of your choice, in order to mantain the push service connection alive.
The recommended value is 5 minutes since its should be enough short for every user.
This app does NOT drain battery in background, its only check the hearbeat value when your phone connect to the network to check if it needs to be updated (since android in some conditions can revert it to the default value).
Shortening the HeartBeat Interval to 5 minutes should not have a big impact on the battery life at all.
* GTalk Service Monitor
To check what I'm talking about open the dialer, and dial this code *#*#TALK#*#*, scroll down and search for the Heartbeat Interval. GTalk Service Monitor its a default tool integrated on android. It's part of GTalk, since push service use google talk protocols.
* Notice:
This app is provided with no warranty. You are responsible for what you are doing on your phone.
* How to restore the default heartbeat interval value
If you dont need this app, uninstall it and reboot your device. Thats all, after some time (12 hours or less) the default hearbeat will be restored by android.
Download here:PLAY STORE LINK (or get the attached APK in case not available on your country for some reason)
Please, if the are problems dont rate bad, send me an email ( ask.andqlimax@gmail.com ) or post the problem in this thread and I'll answer you as soon as possible.
Feedback are welcome!
Version 3.1, 2013/04/18 :
- Added ACCESS_SUPERUSER manifest permission (best practice only)
- Make some descriptions more clear
- Renamed application shortcut to PNF
Version 3.0, 2013/02/25 :
- NEW: Possibility to set mobile hearbeat and wifi hearbeat
- Added link to report the problem to the google discussion forum
Version 2.3, 2013/02/22 :
- Solved: hearbeat interval not updating on some samsung touchwiz roms
Version 2.2, 2013/02/19 :
- Solved: hearbeat interval occasionally reset to default value
Version 2.1, 2013/02/14 :
- Added back 1 minute in the preferred heartbeat interval list and added some preset descriptions
- Reduced a little bit the amount of single SU commands executed
Thanks for the feedbacks!
Version 2.0, 2013/02/06 :
- Completely redesigned interface
- Removed ads banners, please consider a donation to support the development of this app
- Improved SU commands thanks to SuperSU guidelines
Version 1.3, 2013/01/31 :
- New: If needed the heartbeat is also updated everytime the phone connects to wifi or 3g
Version 1.2, 2013/01/24 :
- Improve: detection of errors while updating the hearbeat
- Fix: crash on some devices starting Gtalk Monitor
Q: Does this app drain battery in background? Does lowering the heartbeat interval too much cause more battery drain?
A: NO, the app itself does not drain battery, the app only change the android hearbeat interval to a value that you choice. If you lowering the hearbeat to 5 minutes you will still don't notice any difference with battery usage..Anyway I don't recommend to go lower than 2 minutes.
Q: Where is stored the hearbeat interval?
A: Its stored in a database here: /data/data/com.google.android.gsf/databases/gservices.db
Q: I often receive a toast message saying that the app has requested super user access, how to stop it?
A: Check your Superuser/SuperSU app settings and disable notifications at all, or disable notification for my app
Q: What does mean "set the heartbeat to x minutes" ?
A: It means only that android will check the push connection every x minutes instead of the default 15/28 minutes. It does NOT mean that you receive push notification every x minutes. Notifications are instantly if the push connection is alive.
Version 2.1, 2013/02/14 :
- Added back 1 minute in the preferred heartbeat interval list and added some preset descriptions
- Reduced a little bit the amount of single SU commands executed
Just installed the application.. till now it seems to work perfectly on my samsung galaxy s3. Need to test more to be sure about it. Thanks btw. Nice idea
Just installed the application.. till now it seems to work perfectly on my samsung galaxy s3. Need to test more to be sure about it. Thanks btw. Nice idea
Ps : why did you make 2 threads for the same app?
Sent from my GT-I9300 using Tapatalk 2
I'm glad that it works.
Well I first created the thread on the galaxy nexus section, since it is my device and I want to make sure it was working well before to open a thread here
Is it possible to have 2 interval for wifi and 3g ? My wifi hold well with 15-minute interval, but my 3g only makes it with 4-minute interval (or less, of course).
Thank you for your great work .
Please hit the "Thanks" button if me or anyone helped you
Phone: humble HTC Explorer, running MiniCM9 (retire to be backup phone)
Now: top of the line Nexus 4 running CM10.1
Tablet: once-proud Acer Iconia A500, running TegraOwner's JB (based on CM10.x)
Is it possible to have 2 interval for wifi and 3g ? My wifi hold well with 15-minute interval, but my 3g only makes it with 4-minute interval (or less, of course).
Thank you for your great work .
Yes..I was planning that, when I will get more free time I will have a look..anyway there isn't much difference in terms of battery life abut 5 or 15 minutes if u scared by that hehe
Yes..I was planning that, when I will get more free time I will have a look..anyway there isn't much difference in terms of battery life abut 5 or 15 minutes if u scared by that hehe
Having a good recovery makes the process of modifying, tweaking, maintaining, … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?