Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
andQlimax
Old
(Last edited by andQlimax; 18th April 2013 at 08:48 PM.) Reason: new version
#1  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
Default [ APP ][2.2+][ ROOT ][ FREE ][18-APR-2013] Push Notifications Fixer v3.1

Hi everyone,

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!



Changelog:
See post Number 2

FAQ:
See post Number 3

Report to google here: https://productforums.google.com/for...I/jkpUW0aI3uIJ

Download it from play store to receive future app updates
Attached Files
File Type: apk PushFixer_v3.1.apk - [Click for QR Code] (441.5 KB, 189 views)
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
The Following 98 Users Say Thank You to andQlimax For This Useful Post: [ Click to Expand ]
 
andQlimax
Old
(Last edited by andQlimax; 18th April 2013 at 08:42 PM.)
#2  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
Changelog:

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
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
The Following 3 Users Say Thank You to andQlimax For This Useful Post: [ Click to Expand ]
 
andQlimax
Old
(Last edited by andQlimax; 18th April 2013 at 08:44 PM.)
#3  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
Default R: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer

FAQ

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.
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
The Following 3 Users Say Thank You to andQlimax For This Useful Post: [ Click to Expand ]
 
andQlimax
Old
#4  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
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
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
 
.xxx.
Old
#5  
.xxx.'s Avatar
Recognized Contributor
Thanks Meter 876
Posts: 1,471
Join Date: Oct 2011
Location: Mumbai

 
DONATE TO ME
Default 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
 
andQlimax
Old
#6  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
Default R: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer

Quote:
Originally Posted by .xxx. View Post
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
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
 
andQlimax
Old
#7  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
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
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
The Following 2 Users Say Thank You to andQlimax For This Useful Post: [ Click to Expand ]
 
redguardsoldier
Old
#8  
redguardsoldier's Avatar
Senior Member
Thanks Meter 79
Posts: 167
Join Date: 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 .
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)
 
andQlimax
Old
#9  
andQlimax's Avatar
Senior Member - OP
Thanks Meter 566
Posts: 2,042
Join Date: Jul 2010
Location: Rome

 
DONATE TO ME
Default R: [ APP ][2.2+][ ROOT ][ FREE ] Push Notifications Fixer v2.2

Quote:
Originally Posted by redguardsoldier View Post
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
Galaxy Nexus GSM GT-I9250 (maguro) | yakju | TWRP 2.4.1.0 | BOOTLOADER PRIMELC03 | RADIO XXLJ1 | Stock JDQ39 4.2.2 + Root
HTC Desire GSM A8181 (bravo) AMOLED| PVT1 | HBOOT 0.93.1000 S-OFF CM7r1 | 4EXT Touch Recovery | RADIO 32.56.00.32U_5.17.05.23 | CM 7 Nightly | A2SD 512MB EXT4
Nokia N70

Delayed Push Notifications? Push Notifications Fixer
The Following User Says Thank You to andQlimax For This Useful Post: [ Click to Expand ]
 
spupuz
Old
#10  
spupuz's Avatar
Senior Member
Thanks Meter 132
Posts: 1,130
Join Date: Feb 2008
Location: Milan

 
DONATE TO ME
Quote:
Originally Posted by andQlimax View Post
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?
Alessandro aka "SpUpUz" from italy

 
Post Reply+
Tags
push notifications
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...