Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP][2.2+][ROOT][17-FEB-2014] Push Notifications Fixer v4.5.2

OP andQlimax

10th February 2013, 10:23 PM   |  #1  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
[FEAUTURED ON XDA PORTAL: LINK ]

Hi everyone,

Are you experiencing delayed push notifications from GTalk/Hangouts, GMail, Whatsapp (partial fix), Facebook, Play Store web install, etc? If so, then this app its for you!
It's FREE! No banners. No ads. Please consider donating to the developer (link in the app).

ROOT is required. For non-root version check here: http://forum.xda-developers.com/show....php?t=2516849

This app ONLY change some NUMBERS inside GSF android database. Read below.
You will always receive instantly push notifications.

*** How do I use PNF?
Install the app, accept Superuser permissions, choose your interval, select “apply,” and enjoy. The Mobile heartbeat interval must be longer than the Wi-Fi interval, once you applied the settings, the heartbeats are permanently changed and survive to reboots.

* Why were my notifications delayed in the first place?
Apps using Google's push service (Hangouts, Gmail, Facebook Messenger, e.g.) connect your phone to Google’s servers via one TCP connection (on port 5228).
To keep this connection alive, Android uses a periodic heartbeat to prevent the connection from timing out. By default, this heartbeat occurs every 15 minutes on wifi and every 28 minutes on a mobile data connection.
This is problematic because most Wi-Fi routers and mobile carriers will automatically terminate this connection after a short time of inactivity.
Because your phone is not aware that this connection was externally closed, you will not receive push notifications until this connection is reestablished when the next heartbeat is sent.

* How does PNF solve this problem?
PNF simply updates this heartbeat interval (stored on the GSF database inside android data partition) to the value of your choice, in order to maintain the push service connection (GCM).
Once set to the recommended 5-minute heartbeat interval, you should receive all push notifications instantly.
PNF does NOT run in background.
PNF will have not affect battery life.

* 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. If the previous don't work try *#*#426#*#* and search for initial heartbeat.

* 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
Before to uninstall PNF tap "Restore default heartbeats" in the app.

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!



Changelog:
See post Number 2

FAQ:
See post Number 3

Report to google here: https://productforums.google.com/for...es/fslYqYrULto

Download it from play store to receive future app updates
Attached Files
File Type: apk PushFixer_4.5.2.apk - [Click for QR Code] (547.7 KB, 1938 views)
Last edited by andQlimax; 24th July 2014 at 08:28 PM. Reason: update description
The Following 185 Users Say Thank You to andQlimax For This Useful Post: [ View ]
10th February 2013, 10:27 PM   |  #2  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Changelog:

Version 4.5.2, 2014/02/17:
- Added Spanish translation (Thanks Javier)
- Added back GTalk monitor (for "old" devices)
- Added Play services monitor (for new devices)

Version 4.5.1, 2014/02/12:
- Fixed not restoring default heartbeats in 4.5 version

Version 4.5, 2014/02/11:
- Removed workarounds to change heartbeats at wifi/mobile switch; no more needed.
- The app does not run in background anymore
- Mobile heartbeat must be bigger than the wifi one
- Heartbeats changes require toggle network/reboot on some devices
- Updated SU code

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

Version 4.0, 2013/08/29 :
- PNF now is near perfection, set the heartbeat in a persistent way using GSF "overrides" table. Once you set the heartbeat, 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"

Version 3.5, 2013/05/27 :
- NEW: PNF is now able to intercepts when android will revert the heartbeat interval
- Battery consumption of PNF is under 1% in a day
- The heartbeat is automatic updated only when android revert it or when you switch network type from wifi to mobile or vice versa

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

Version 1.1, 2013/01/24 :
- Fix: admob banner

Version 1.0, 2013/01/23 :
- First release
Last edited by andQlimax; 17th February 2014 at 09:32 PM.
The Following 11 Users Say Thank You to andQlimax For This Useful Post: [ View ]
11th February 2013, 07:05 PM   |  #3  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
R: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer
FAQ

Q: What is the heartbeat interval
A: It's a keep-alive android mechanism to keep the push connection alive by sending a little network packet every x minutes. PNF only update that interval number. By keeping alive the push connection (for example every 5 minutes), push notifications will be instantly.

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 run in background. If you lower the heartbeat 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 heartbeat interval?
A: Its stored in a database here: /data/data/com.google.android.gsf/databases/gservices.db

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.

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 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.
Last edited by andQlimax; 11th February 2014 at 11:01 PM.
The Following 16 Users Say Thank You to andQlimax For This Useful Post: [ View ]
14th February 2013, 10:21 PM   |  #4  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
New version on the play store:

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
The Following 5 Users Say Thank You to andQlimax For This Useful Post: [ View ]
15th February 2013, 11:13 AM   |  #5  
.xxx.'s Avatar
Recognized Contributor
Flag Mumbai
Thanks Meter: 971
 
1,587 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Re: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer
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
15th February 2013, 08:29 PM   |  #6  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
R: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer
Quote:
Originally Posted by .xxx.

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

Inviato dal mio Galaxy Nexus con Tapatalk 2
The Following User Says Thank You to andQlimax For This Useful Post: [ View ]
19th February 2013, 03:59 PM   |  #7  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
New version released on the play store

Version 2.2, 2013/02/19 :
- Solved: hearbeat interval occasionally reset to default value

Here the issue I opened on google, https://code.google.com/p/android/is...etail?id=49721 not sure if some engineer will ever answer
The Following 3 Users Say Thank You to andQlimax For This Useful Post: [ View ]
19th February 2013, 11:04 PM   |  #8  
redguardsoldier's Avatar
Senior Member
Thanks Meter: 88
 
182 posts
Join Date:Joined: Nov 2011
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 .
19th February 2013, 11:26 PM   |  #9  
andQlimax's Avatar
OP Senior Member
Flag Rome
Thanks Meter: 876
 
2,386 posts
Join Date:Joined: Jul 2010
Donate to Me
More
R: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer v2.2
Quote:
Originally Posted by redguardsoldier

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

Inviato dal mio Galaxy Nexus con Tapatalk 2
The Following 2 Users Say Thank You to andQlimax For This Useful Post: [ View ]
21st February 2013, 10:00 AM   |  #10  
spupuz's Avatar
Senior Member
Flag Milan
Thanks Meter: 255
 
1,704 posts
Join Date:Joined: Feb 2008
Donate to Me
More
Quote:
Originally Posted by andQlimax

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

Inviato dal mio Galaxy Nexus con Tapatalk 2


does this application increase the battery usage?

Post Reply Subscribe to Thread

Tags
push notifications
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes