yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] andQlimax:
In past I thought about it, the only difficult part would be to explain to the user the reason of it. In the options I should show 0:58 min, 1:58 min, etc.

But it needs testing that Google Service Framework really supports without any issues that numbers.

Google has everything ready, the heartbeat values can be already overridden remotely for every single user, but they just slow to implement a such algorithm to determine the right heartbeat user based. They will probably come out with a better solution without heartbeat in the far future.
[Android Apps and Games] Edinho376:
I deleted anything google-related in my girl's phone and now she doesn't get WhatsApp messages unless the screen is on (with the app opened; even if in background) ; then tried using Push Notification Fixer but it didn't work because of some google-missing file.

I don't want to reinstall the ROM because without Google crap the phone is running (at least); and before it was just crash and freezings.

What should i do?

Edit: The phone is a Blu D142k (Dash Jr. 4.0)
[Android Apps and Games] AmolAmrit:
Buddy , I get this error . I'm on CM 12.1 13/8 Build for Moto G 2014. I have proper g apps installed.
[Android Apps and Games] andQlimax:
It seems depends from new play services that changed some that I need to fix. Anyway if you reboot the phone after apply settings, the settings are applied. Will update the app in next days
[Android Apps and Games] AmolAmrit:
When I click on Donate Now then it says Error . In other apps it says In App Purchase is not available on this device
[Android Apps and Games] der_Kief:
same problem here ..... CM12.1 / Samsung Galaxy S4 (I9505)
[Android Apps and Games] AmolAmrit:
I have my exams now , So I don't have time to install Latest GApps . So have you tried installing it?

---------- Post added at 10:11 AM ---------- Previous post was at 10:10 AM ----------

Reason Behind Using this App :

Guys I have this issue in every custom ROM but not in stock . Whenever I'm on WiFi and I keep my phone locked for more than 20-25Mins , I don't get notifications . I do get calls and SMS but no Notifications from internet using applications like WhatsApp , Messenger , Nimbuzz , Hangouts etc. And When I unlock my phone I suddenly start getting flood of notifications . My device never wakes up while receiving Notifications. Guys , need immediate help.

Edit : No Task Killers , Disabled Greenify Auto Hibernation . Everything Stock. Faced this on CM 12.1 ,BlissPop of course , Candy5 too

[MENTION=2790445]andQlimax[/MENTION]
[Android Apps and Games] Joli229:
Hi there, installed this app Saturday and all seemed to be resolved...then last evening I missed another Whatsapp message...only picked up this morning opening my phone up. I have Samsun min Galaxy 4.1
[Android Apps and Games] andQlimax:
Version 5.0, 2015/09/01:

- Fixed bug "Can't find Google app process"

- Introduced push notifications, I will able to send all users push messages

- New icon (better one will probably come soon)
[Android Apps and Games] der_Kief:
Thanks for the update :good:

One question:

does this app still not need to run in background (once run and then forget about it)?

If yes how you want to send push notifications ;)

I ask because i disabled autostart and the other permissions with AppOps
[Android Apps and Games] andQlimax:
Yes, no need to run in background to receive push notifications. That's the good thing about push notifications. It's only the Google framework process that is running in background (on behalf of all apps that implement push notifications), keep the connection to Google servers (here apply the heartbeat) and dispatch the notifications to the right app to be triggered
[Android Apps and Games] Superfred1:
Hello, thank you very much, your APP solved my push problem.

I habe two questions:

Can you give more information in this new feature, I don't unterstand what it is doing:

" Introduced push notifications, I will able to send all users push messages"

And why is your APP running active in background, when the only thing it does is changing the gcm steetings?
[Android Apps and Games] andQlimax:
Hi,

The 2 things are correlated. I indtroduced push notifications support just to be able to send advice messages to the PNF users, since I always get emailed about common issues.

The fact that the app is sleeping in the background should not impact the battery.

Thanks
[Android Apps and Games] DVMi:
Hello,

For what purpose did you add ability to send push notifications to users? What kind of notifications you are going to send?
[Android Apps and Games] andQlimax:
Advices, critical updates, something like that.

What do you think? Ads? No :)
[Android Apps and Games] DVMi:
Your app is working great for me, quietly do it's job, so I (and some others, I guess) do not need such advices.

Would you make an option to opt-out of this pushes?
[Android Apps and Games] andQlimax:
What the problem with push messages? Almost every app support it and don't even tell users, just because I put it in the changelog now everyone seems to be scary, about what? Sorry I cannot understand.

For me it's a useful future, because if some day Google play services get some update and the changes made from pnf will make your phone behavior bad, I can send an instant message to everyone one and tell how to solve it (since you may don't understand that pnf is causing it).
[Android Apps and Games] AmolAmrit:
Hey ! Op! Can you please look at this thread full on

http://xdaforums.com/showthread.php?t=3194798
[Android Apps and Games] andQlimax:
Your problem is not push notifications is about loosing Internet. Without Internet notifications can't work of course.

It could be a rom or kernel bug.
[Android Apps and Games] AmolAmrit:
My internet is fine. But this happens in all roms for my phone.
[Android Apps and Games] oli1607j:
No notifications for Whatsapp

Stopped receiving notifications for Whatsapp about 4 weeks ago. Also, hit and miss for my Messenger app, I use as a secondary facility. Tried reinstalling both, to no avail, also tried the PQN App, to no avail. It's not time for an update on my phone just yet but missing all messages is driving me nuts. Rebooting allows messages or opening the app. I have a 4.1 Samsumng android mini Galaxy. I'm very much a novice with devices, so please be patient! Any advice would be much appreciated..have emailed Qlimax bout a week ago but maybe away as no response to yet
[Android Apps and Games] Nevoet:
Hi [MENTION=2790445]andQlimax[/MENTION], take a look at this. I just updated to lollipop 5.1.1 (coming from 4.4.4 - xperia ZL) and recently I've noticed a delay in push notifications.

For example, in the previous android I had (4.4.4, same device) notifications would come as late as 1 min. top... normally it would be between 7 and 30 seconds (without PNF).

Now in this update notification would come between 3 seconds (rare), 7~15 seconds (normally), but there are some times it would take about 5 minutes, or until I turn the screen on manually. Now the weird part is that in this android version I've installed PNF root, set the heartbeat to 3 min, and anyway the delay is there (it would take more than the 3 min the heartbeat is set to). It is really weird as I've tested with the nandroid backup I have of the 4.4.4, and the delay is not there.

The only way to "fix" this delay is to restart the phone... it would take almost 1 to 2 hours for the delay to come back though.

There is other weird thing, at certain hours, lets say between 00hs and 12am the notifications arrive consistently, it's like the server (in this case gcm?) is throttling the connection.

I've done another test were the only thing achieved was a headache:

- Android 4.2.2 - All notifications arrive inmediatly (timed, 1~5 seconds) -Note: Stamina ON, wifi optimization ON, greenify ON.

- Android 4.3 - Hi push notification delay! (timed, 30s~5m) -Note: PNF doesn't fixed it. All battery saving options disabled, including wifi optimizations.

- Android 4.4 - Delay in push notifications where less "slow" (timed, 7s~1m) -Note: PNF doesn't fixed it. All battery saving options disabled. -there isn't any wifi optimization setting-

- Android 5.1.1 - Hi random push notifications delays! (timed, 3s~5+m) -Note: PNF doesn't fixed it. All battery saving options disabled. -there isn't any wifi optimization setting-

All the test were done with the device rooted. The only thing I can think of all this delay issue is:

It is possible that google uses other gcm server on previous android versions?

it is a bug in the wifi module/driver?

It is done on purpose for battery saving?

I have also tested with different configurations in the wcnnss_qcom_cfg file:

Setting gEnableBmps=0 Totally fix this issue BUT, will eat the battery. (2~3% per hour.)

Setting gEnableSuspend=2 Till now it fixed the excesive delay BUT eat a liiiiitle bit more battery. Further testing needed. (12% in 8 hours)

[IMG="Screenshot of the gcm events tab with the delay."]http://i.imgur.com/hnLv9nWh.jpg?1[/IMG]

You know why it says -in this case- that the "telegram" notification was received perfectly in time, but the gcm pushed 5 minutes later?

NOTE: At the moment of that screenshot, I was using PNF with 3 min heartbeat.
[Android Apps and Games] andQlimax:
Your last senteces explain everything.

If gEnableBmps or gEnableSuspend fixes the issue, it's mean the problem is due to your phone disconnecting from the wifi, so if it looses the network thats why notifications does not arrive (so not a problem in gcm or a problem that can be fixed with PNF.

It's a common issue, it is due to problems between your phone (rom/kernerl/drivers) and your wifi router. The wifi protocol should be a standard, but in the real word there are some little incompatibility especially handling standby status and power saving mode. In your case the 5.1.1 update break something that cause this issue between your phone and router.
[Android Apps and Games] Nevoet:
Thx for the reply. I've done some checking router-side and everything seems rigth (DTIM interval, beacon interval, WMM APSD, etc), in the logs (router) there isn't any entry stating a re-connection, or lose of it. What would you recommend me to try?
[Android Apps and Games] AmolAmrit:
Use Advance WiFi Lock .

Tapped from my Títan ??
[Android Apps and Games] Nevoet:
After doing some more testing and without nothing else to test I've reached a point of frustation haha. The testing was done with the router and the phone at a distance less than 2 mts without any object blocking it. In one moment I've restarted the router in angry-mode.... and after the router bootup again.... guess what? Instant notifications . (10 seconds top). What could be causing this? [MENTION=2790445]andQlimax[/MENTION], any ideas?
[Android Apps and Games] xdarthanonx:
Does it only happen with WiFi, or 3G/4G data also?

How long since you last rebooted your router? (I just rebooted mine a few hours ago and discovered that the up time prior to reboot was 58 days.)

Latest router firmware?

Static or dynamic IP address? (A while back I had intermittent WiFi problems with my phone but assigning it a static IP address fixed it.)
[Android Apps and Games] Nevoet:
It only happens on wifi. mobile data works flawlessly.

Router is rebooted almost on a daily basis.

The router is a ****ty pirelli/adb adsl, so, no firmware upgrade available since the "adb" -manufacturer- dropped support back in the WW2

Static IP address for every device connected to it

Now I can say that it's not an "internet" issue.:

I've resynchroniced the adsl connection (without restarting the router) and the problem persist. But if I restart the router completely the problem is gone, at least for half a day.
[Android Apps and Games] xdarthanonx:
It might be time for a router upgrade... :confused:
[Android Apps and Games] Nevoet:
Yeaaaah, definitely. Weird thing is that this happens with other router I have. (Other ISP I have at home - the router is a tp link, with dd-wrt). A reboot fix the issue
[Android Apps and Games] nothingman1976:
Hi,

Is it normal to always have ReconnectManager set to OFF ?
[Android Apps and Games] andQlimax:
Yes normal because the status of GCM is "Connected". When an hearbeat is sent, and the server does not respond, then the ReconnectManager should become ON while trying to get a connection
[Android Apps and Games] ride_bmx_mhell:
wiil try this now (;
[Android Apps and Games] imransyafi:
So its fine that I greenify the app? If I uninstall it without restoreing default would the settings stay?
[Android Apps and Games] andQlimax:
Yes, you can.
[Android Apps and Games] imransyafi:
If I uninstall I believe it would revert to default settings? Or not ?
[Android Apps and Games] andQlimax:
The changes are persistent untill you tap on "restore default" or you remove your google account or you factory reset the phone.
[Android Apps and Games] vazbloke:
If I uninstall the app without restoring to default, will the changes remain? Even after reboot?
[Android Apps and Games] andQlimax:
Yes, changes are not applied at boot, changes are permanent applied when you tap apply changes on the app.
[Android Apps and Games] vazbloke:
Thank you for replying :D

Even after I set the recommended values, it hasn't updated in the db :confused:

Is it safe to manually update the values to 360000 and 300000?
[Android Apps and Games] andQlimax:
PNF write the values in "override" table, not in "main".

Main table is overwritten once a day from Google play services which download the values from Google servers.

While the override table, like the name say, override the keys which are in main table. That's why changes are permanent.
[Android Apps and Games] vazbloke:
I checked the overrides table and it has been updated. Thanks for clarifying :)
[Android Apps and Games] limdev:
I've installed PNF, and using "Monitor Play Services" in the events i can see:

what does it mean? that's why I do not receive notifications?
[Android Apps and Games] limdev:
checking on "Monitor Play Services" I have a hole from the moment I turn off the screen, until the moment I power on the screen...

what does this mean?
[Android Apps and Games] sacredsoul:
Still needed for Android M?
[Android Apps and Games] andQlimax:
Hi,

it does not depends from android version, but from Google Play Services.

Actually the heartbeat values are at 8 minutes (mobile and wifi). If your carrier or your wifi router don't close an inactive connection before 8 minutes, you should not have delays. With PNF you can lower the heartbeat in case you have delays.
[Android Apps and Games] der_Kief:
Hi,

are the recommended values (6 min mobile / 5 min Wi-Fi) still valid ?

-Update-

are these connections TCP and/or UDP related ?

I ask because my Fritzbox router at home drops inactive TCP connections at 15min and inactive UDP connections at 5min.
[Android Apps and Games] D00ky:
Wifi interval higher than mobile?

First big thanks for this app. But I have one question. My wifi works ok at 15min interval but I have a problem as my mobile provider drops connection after 5 minutes. So in this case I would have to go with 4/5 interval. As this would worsen my wifi battery I would like to know if it is possible to set wifi interval at 15min and mobile at 5min. I know that app won't do that but I am interested if it could. Has it been tried before?

Edit: I have found an explanation now. Not happy thou :( Really don't know why my carrier has to drop my connection that fast.
[Android Apps and Games] Whyzor:
Wifi interval at 4 mins is still not that bad, it uses way less power than the cellular radio. I have mine set at 2/3 interval because of Sprint towers drops it at anything above that. My battery is fine, although I do have an LG Volt with 3000 mah battery, and LG phones are known to be very thrifty with power.
[Android Apps and Games] AmolAmrit:
Can anyone tell me. If I set the WiFi Heartbeat interval to 1 min , then android will send a heartbeat every 1 min right ? So , notifications will not be delayed and will be quick. Right?
[Android Apps and Games] AmolAmrit:
But , still whatsapp's problems persists. I think WhatsApp is having serious issue with the GCM Servers.
[Android Apps and Games] KrlzGmz:
Quick question: Are the default heartbeat intervals still 15&28 in latest google play services on marshmallow?
[Android Apps and Games] andQlimax:
It's 8 and 8 since from some months I believe.

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] shavluk:
Hi i have noticed that monitoring the hertbeat (ReconnectManager), the countdown go negative, this with wifi and with 3g. What does this mean?

Thanks
[Android Apps and Games] dimm0k:
is this normal on my Lollipop device, specifically the 'DISCONNECTED' part? I don't recall seeing that on my old Samsung device... this seems to only happen when on Wi-Fi too.
[Android Apps and Games] rrabe:
Cannot update heartbeats, Error: unable to open database

When applying the settings, I see this dialog reproduceably:

Cannot update heartbeats, something went wrong: SU error - Error: unable to open database "/data/data.com.google.android.gsf/databases/gservices.db": unable to open database file

I get it with Android Gingerbread 2.3.6 (Rooted) und PNF Root Version 5.0.

Any help is very appreciated.

Thank you,

Ruben
[Android Apps and Games] crazyng:
there is no used on my moto x style 6.0.1 .what a pity.
[Android Apps and Games] andQlimax:
It is not a device issue. You could have an other issue which PNF can't solve
[Android Apps and Games] crazyng:
Can pnf run well on Android 6.0.1?thanks
[Android Apps and Games] andQlimax:
Yes
[Android Apps and Games] crazyng:
I see...Maybe it's Wechat's problem...thanks all the same.
[Android Apps and Games] kobredabre:
Heya friends,

I have a strange situation and I hope some1 can point me in right direction... Only on my home WiFi, as soon as my phone enters aggressive doze, my phone is dead for gcm notifications. Ok, I'm using greenify's aggressive doze (and tried Force doze also) but on other networks (WiFi and mobile) as soon as notification is send it arrives on my phone, nevertheless doze. I tried to whitelist whatsapp and Viber from doze but it not helps much. Apps can receive notifications but only for a short period of time (10 - 15min) then it's gone...

What I noticed from play service monitor is that my WiFi heartbeat alarm goes in minus value (screenshot 1) and it will go that way until I start whatsapp for example.

On the second picture is event tab where I sent myself whatsapp message from the other pone at 01:30am approx and it didn't arrived yet (10:45am) even that I woke phone. It will arrive as soon as I start whatsapp...

Third screen is gservices.db database where values from your app is shown...

Huh, sry for a long post... Tnx in advance for reading and for any help :)
[Android Apps and Games] henriqueinternet:
Hi! What is the difference between de app PNF root and PNF non-root?
[Android Apps and Games] solquest3:
on wifi: phone not connected

Hello.

I've just downloaded your app setting mobile heartbeat: 2 min and wifi heartbeat: 1 min.

When I'm connected to home wifi I find out that it looses connection (web whatsapp says phone not connected), while this never happen when I'm not connected via wifi.

In wifi advance setting I have Keep Wi-Fi on durng sleep mode= always and I don't use Greenify.

Any idea or something more I have to check?

Thanks.

Alcatel idol 3, 4.7'' (6039Y)

Android 5.0.2

Rooted

Stock Rom
[Android Apps and Games] majki2817:
Hi,

Is it possible to use it on non-rooted device after all.... I mean, sending some permissions via usb debug to it works?

I know apps which needs root but works if will recive necessary permissions via usb

So... Root-Push Notification Fixer only for rooted device?
[Android Apps and Games] andQlimax:
No way to do via usb.

If you don't have root, you can use pnf no-root, that instead of permanently changing the heartbeat, it trigger the heartbeat sending at each interval you configure.

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Android Apps and Games] majki2817:
Thank you for answer.

No-root PNF should be excluded from battery optimization? (android 6.0.1) or it may stay optimized? (default)

Kind regards
[Android Apps and Games] LoV432:
I dont think thats normal....or is it :|?
[Android Apps and Games] andQlimax:
Not normal, probably your wifi connection has some port blocked / firewall
[Android Apps and Games] LoV432:
I dunno man....is it possible that wifi only blocks my connection cuz i have 3 more android in my house and all seem fine =/
[Android Apps and Games] gggg:
intent to force reconnect to GCM

I am on 4.4, rooted and use llama (similar to tasker). I only enable "mobile data" once per hour for 2 minutes....

The problem is, that even when I enable data GCM does not reconnect immediately but instead waits for eg. 14 min. before retrying to connect ... so messages from "google hangouts" dont come through.

I have also watched that when I turn on (and off) flight mode, the ReconnectManger is OFF (so no more intervalls) and the next time I enable data it immediately connects

1 Could you please tell me the intent I have to send to force GCM to connect (like if i press the connect button on the play service monitor) ?

2 Or is it possible to switch off the Reconnection Manager (like I did with flight ON/OFF) by a setting in gservices.db or with an intent

3 Is there an special intent for Hangouts to reconnect ?
[Android Apps and Games] andQlimax:
When data is enabled, or also when your disable airplane mode, the connection to GCM should be enstabilished.

1. This is the intent com.google.android.intent.action.MCS_HEART BEAT

2. I don't know, probably there is. But if you set it off it won't never check the connection to GCM which will then timeout and push will not work anymore

3 It should just use GCM connection
[Android Apps and Games] XBOHDPuKC:
any idea why BBS shows 7.4/h alarms coming from this app? From the description I thought it just changes a value in the DB and that's it. If so, what do those alarms do?
[Android Apps and Games] jijishthomas:
Hi, I am using LOS 14.1 with Greenify(root).

My background data stops (both Wifi and Mobile data) when the screen is timed out, When the screen is ON, no problems....

I have uninstalled greenify, tried all options in settings, but of no use.

I am not getting whatsapp messages, cannot download any updates, cannot use torrent clients etc.

will this can solve my issue?
[Android Apps and Games] Mesmurized:
New app user here -- surprised that both Mobile & WiFi Heartbeat intervals were set to the recommend values (not Android). Did M change the defaults? Or maybe it's my ROM/Kernel (5X, PN 6.0.1 (2016506), ELX) Note: I read the first and last 2 pages but didn't find an answer. :confused:
[Android Apps and Games] larryblynn000:
Will this work on my mate 9 nougart phone have tried to use bbut interval stays at 15 minutes any way else to change please?
[Android Apps and Games] jijishthomas:
I am still having some issues with push notifications, I use mobile heartbeat to 2 mins and Wi-Fi heartbeat to 1 min
[Android Apps and Games] alessio89g:
Do you like this icon?

I made it by my self, and the colors are the same as your GUI.

I use it with Nova Launcher, but If you like it, feel you free to replace your icon with it for your app! :)
[Android Apps and Games] alessio89g:
[MENTION=2790445]andQlimax[/MENTION]

I've a question:

Do the changes made by this app survive, after a Google Play Service update or re-flashing Gapps zip (because of ROM update)?
[Android Apps and Games] jijishthomas:
I'm still having issues with delayed notifications