yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] bRunO:
Google Play Services gcm disabled

are here anybody who know the problem on attached screenshot?

thats the state from *#*#426#*#*

Hangouts and other services are not really work with GCM push, its a HTC One x+ device.

We have tried to remove the whole google account and add again, but it does not help.

Also the services has no background data restrictions.
[Android Apps and Games] andQlimax:
If you dial *#*#8255#*#* does it show all information?

*#*#426#*#* disabled, only mean your account on your device still using the old monitor, so not completely switched to GCM, it's the framework on your device that decide that...I had it like that on the galaxy nexus for some time, then it become enabled itself.

Those monitor, 8255 and 426, are exclusively, google is migrating that
[Android Apps and Games] andQlimax:
New minor version on the play store!

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)
[Android Apps and Games] burdo:
I updated but now it wont let me set the mobile interval to 1 minute which is the only one that works for me.
[Android Apps and Games] ranjitrock:
GTALK_HEARTBEAT broadcast issues

I used below code in alarm manager to periodically broadcast heart beat

sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT"));

but when i observed the logs it said "Ignoring attempt to send heartbeat on dead connection.

"

what does this log cat mean .
[Android Apps and Games] andQlimax:
I remember to have that log in my old galaxy nexus, Despite the log, the heartbeat was sent. You can see the countdown on gtalk monitor is being resetted every time you send the broadcast.
[Android Apps and Games] ranjitrock:
how to check to launch gtalk monitor for non-rooted phone
[Android Apps and Games] andQlimax:
it has been said, on some phone should work to dial *#*#8255#*#*
[Android Apps and Games] k4r70ng:
Hey andQlimax! You know any opensource alternative for GCM? I know a lot of projects that do not want to rely on googles closed libraries.

Regard
[Android Apps and Games] andQlimax:
If they don't want to use GCM, mean they don't want to use android push notifications and they need to develop a custom implementation (or use someone else implementation) to send and receive instant messages. That's bad for phone battery and completely go against the push notifications concept. If every app will use its own connection and not GCM, the phone will have to handle dozen of different persistentcy tcp connections, instead to use only the one provided by GCM.
[Android Apps and Games] khairuna:
google play service menu, in my case is disable. is it normal?

there's only ping,connect,disconect tab and blank page with 'disable' word.
[Android Apps and Games] andQlimax:
ya it can be normal on some android versions
[Android Apps and Games] khairuna:
i don't have any notification from social media espesially from facebook,twitter,ig,path. how can i fix it?

but about messaging like wa work well
[Android Apps and Games] jeswinjv:
GoinG to do.....xcited :what: :D

via XDA Premium developer's-app
[Android Apps and Games] dimm0k:
is there any way to verify the values one has chosen for cell and wi-fi are good enough? I've seen some people say they've lowered it to 1 minute, while the suggested is 5... just trying to find the right balance.
[Android Apps and Games] andQlimax:
You can only do some tests by sending an email from your pc to your Gmail phone account and see if instantly or not. It depends from your network, but usually 5 is enough, people that use 1 minutes most likely have a completely network drops (not solved by pnf anyway )

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] FuTChY:
Hello, If I may ask about something!!

Could the application cause the GCM_CONN_ALARM wakelock to run more frequently ?

I'm hibernating almost all apps, yet I notice that GCM_CONN_ALARM to run for very long times when idle.

And one more thing, why did you strict the time of the wifi to be lower than the data ?

For example, I'm getting delayed push notifications when setting the data for more than 5 min. so I set the data for 5 min. so I have to set the wifi for 4 min. as there is a restriction on that , yet I don't use wifi so could that cause any type or more battery drain ??

Away from that, Push notifications are nothing without PNF fixer :)

Thanks in advance.
[Android Apps and Games] andQlimax:
It could be possible that some GCM wakelocks occurrs more frequently, but that doesn't mean excessive battery drain, not all wakelocks are bad

The reason in PNF I forced the mobile hearbeat greaten that the wifi one is to respect the android restriction as well.

In the previous version of PNF when you was setting a mobile heartbeat lower that the wifi one (which is not possible in GCM), I used a workaround to kill the GCM process and change heartbeats values everytime that the connection change to make the values be effective; instead with the latest version of PNF this is no more necesary, both the heartbeat are correctly switched by android and PNF doesn't have to kill the GCM process everytime (which can result in data loss or worst thing with the google account data on your phone)
[Android Apps and Games] FuTChY:
Thanks :)

And as I said before, Android push notifications are nothing without PNF. :highfive: :good:
[Android Apps and Games] mirko brand:
Did anyone verify that this works on Android 4.4.2 running HTC Sence 5.5? I have it installed but I'm not 100% sure that it works as it should, since most of my notifications are through Whatsapp.

Also, does the power saver have any impact on PNF? (I have it set so that it doesn't turn of data connection)

Thanks.
[Android Apps and Games] dragonzee:
Amazing
[Android Apps and Games] j0rge:
I am having serious problems with the push notifications. Sometimes I get the notifications of Whatsapp/Telegram messages and sometimes I don't (the app must be opened to retrieve the messages). Now I looked at the GTalk Service Monitor and noticed that the heartbeat timer runs to zero and then a message "No heartbeat alarm set" appears. Same issue with 3G and WIFI. That means the heartbeat message cannot be sent?

Any ideas to fix this issue? Thank you!

EDIT:

Created a thread about this: http://xdaforums.com/showthread.php?p=51531376
[Android Apps and Games] DurhamHusker:
Heartbleed?

I have a question about this app as it pertains to OpenSSL's vulnerability to the Heartbleed issue.

PNF manipulates Android's heartbeat interval in order to keep the data connection alive to the mobile network and thereby keep push notifications coming to the device. Is the "heartbeat" manipulated by PNF the same heartbeat that is the subject of the Heartbleed vulnerability of OpenSSL? If in fact it is, could it be inadvertently exposing devices with vulnerable versions of OpenSSL installed in their versions of the Android operating system?

Thanks for your help.
[Android Apps and Games] andQlimax:
What PNF manipulate is a TCP connection heartbeat, and not an OpenSSL specific heartbeat. The word "heartbeat" is commonly used to indicate a keep-alive mechanism.

Also PNF only change the interval of that heartbeat, and not its data (which is not possible without hack some android apk). The Open SSL vulnerability is achieved by using an hacked heartbeat.

That's obviously not the case with PNF which only change the interval but does not modify the heartbeat data; in fact the heartbeat is created and sent by Android itself and not by PNF.

Moreover Google said that no android version is vulnerable, except for android 4.1.1 which is vulnerable. Even if some Google services may still require some patching to fix the problem. Source: http://googleonlinesecurity.blogspot.com/2014/04/google-services-updated-to-address.html?m=1

Some more explanation of the vulnerability are here:

http://security.stackexchange.com/questions/55343/how-to-explain-heartbleed-without-technical-terms

https://xkcd.com/1354/

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] Benfran:
Having the same issues. Tried wiping, re flashing rom, everything...

On play services monitor, everything seems to be fine, but when i enter Gtalk service monitor nothing appears there. And when i press to send heartbeat to server, nothing happens either. I don't know if that's normal, but i don't receive whatsapp and telegram messages, even after installing PNF and setting it to the recommended 5 mins and 6 mins fir wifi and 3g.

Also i don't if it's normal but on google play services it says:

Heartbeat: Last ping 81:53:54 .

I'd appreciate any help...

Thanks
[Android Apps and Games] andQlimax:
that's normal...on newer device there is google play services, on old devices google services monitor

the important thing, is that one of the two is working.
[Android Apps and Games] Benfran:
Thanks.

Well, it seems to be working, but then i still don't receive whatsapp and telegram messages, unless i manually enter the app (or if i just exited the app recently). I don't use any battery saving app or tweak, and i haven't tweaked anything on the kernel.

I'm using the latest build from AICP (based on AOKP) on a HTC One M7.

Any suggestion as to what else i can try ? Been desperate, wiping and reflashing for the last 4-5 days with this issue.

Thanks in advance
[Android Apps and Games] andQlimax:
you never receive messages at all unless you open the app?

that's strange..since you mentioned a custom rom, did you flashed the right version of the google apps? to you receive other notifications like gmail messages, hangout messages, etc ?
[Android Apps and Games] Benfran:
Yes it's very strange, but i wasn't the only one having these issues with this ROM (buth the ROM devs/maintainers have ignored all of us who have this issue in the thread, even though they're very active answering other questions). I have flashed the right version of both ROM and Gapps.

I only receive whatsapp and telegram messages when i manually enter the app, or if i have just very recently quit the app (2-5 mins maybe). After that i never receive any notification. The other day i entered whatsapp in the morning, and saw some messages that were sent to me 12 hours ago.

I receive instatly and perfectly all notifications from google apps (gmail, calendar, sms). But the problem comes with non-goog apps (i have only noticed with whatsapp and telegram because they're the ones i use the most, but i might be having the same issue with viber too, but i don't use it so much).

Thanks
[Android Apps and Games] burdo:
Make sure to exit the apps using the back button instead of using the home button.
[Android Apps and Games] pansan:
how much mobile data traffic does this app need in a month if i set it to 5 minutes ?
[Android Apps and Games] jiggyk:
Per se, this app does not consume any data, it only changes the settings of the heartbeat sent to Google servers, which is very miniscule and very difficult to measure.
[Android Apps and Games] andQlimax:
The heartbeat sent by Android should be around 300 bytes, with a frequency of every 5 minutes at the end of a month should be around 2.5 megabytes of data sent

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] andQlimax:
-

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] pansan:
thank you for your answer. i asked because i only have 100 megabyte of data to send in a month after my speed drops to 64 kBit/s.
[Android Apps and Games] Sir.Nry:
Hello,

As I said a few month before I'm getting some delayed notifications only on Wifi.

Today I noticed some delayed and looked at the log, and I saw this : "failed connection ev:1 state:2 err:12 net:1"

I don't know if you are aware of this but if you do, can you please help me to fix this?

There is some screenshots attached to this post.

Thank you for your help and this app :)
[Android Apps and Games] andQlimax:
it doesnt happen to me that frequently..it seems like your phone is not able to connect to google services (maybe no net at all?)

Anyway a little NEWS, with Google Play Service 5.0, the heartbeat is set to 8 minutes for wifi and mobile (instead of the old 15/28 minutes)..a little improvement for people that don't use PNF at least :)

still monitoring for next few days
[Android Apps and Games] Sir.Nry:
Weird right ?

It's not that it can't connect to internet.. I don't know exactly

But I did notice that happen (usually) when the phone is locked and connected to Wifi. Usually when I unlock it, the phone receives all of the missed notifications (ex: emails, facebook messages etc.) When i'm connected with data (4g-3g) I never got this issue .. And I cannot see what's wrong with my wifi

Hope 5.0 correct my issue ^^, like you said :) Keep us in touch with news !

Thank you for your reply :)
[Android Apps and Games] ezudin:
hey , how can i know that the changes have been made ? sorry , i'm still noob :)
[Android Apps and Games] ss4rob:
I'm running the Android L Development Preview. For KitKat, I would modify the five values manually in gservices.db. I did the same thing for L, however, the values reverted to their ridiculous defaults, which I seem to recall reading may occur after a while in this thread. I tried using this app directly on L, and the values never seemed to stick, even after reboot. Do you know if the Google Services Framework has changed in regards to these push notification modifications? Changing these values solved my delayed Hangouts issues, and they've reared their head again, oye. Thanks for any insight, and the great app & research!
[Android Apps and Games] andQlimax:
they always revert if you don't modify the values in the right table..in gservices.db you have to add the values in the table called "overrides", basically the values you put in this table will override any value of the table "main"

that exactly what pnf (root version) does
[Android Apps and Games] p_machado:
great man!! download here...:D
[Android Apps and Games] daniruth:
Android L

Hi,

I installed and rooted Android L preview. After that I installed your pnf root version, which I've been using for ages in previous versions of Android successfully. However, no matter how many times I tried and changed the intervals, etc... My notifications kept being delayed. They only came in after unlocking the screen.

When I pressed gtalk monitor it said something like gtalk wasn't installed or it couldn't be found.

The play services monitor gave me various readings. And you could see that it connected when I unlocked the screen or thereabouts.

Does this version on pnf work with Android L. Or will it have to be updated?

Thank you very much,

Daniel
[Android Apps and Games] andQlimax:
Personally I didn't tried yet on Android L.

To check if working look in Google play service monitor. You should see the heartbeat countdown and an "initial" value in seconds. If the initial value is the one you set from pnf, then it's working correctly.

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] daniruth:
---------- Post added at 11:11 PM ---------- Previous post was at 10:28 PM ----------

Hi,

I installed Android L back and got it rooted.

I then set mobile heartbeat interval to 3 mins and Wifi to 2.

However, the heartbeat countdown for mobile in google play services remain at 1680 seconds. (28 mins)

Wifi network countdown remains at 900 s, 15 mins.

It seems that it is not working. It doesn't record it.

Thank you,

Daniel
[Android Apps and Games] andQlimax:
Thanks, I will look it in next days.. It probably has to do with new root restrictions in Android L.

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] ss4rob:
Thanks for the reminder - overrides table did the trick. Before doing this manually again, I tried using your app first, and it did not work on rooted L. Maybe a permissions thing? Anyway, appreciate your effort.

Edit: Looks like someone else posted the same thing - glad you're looking at it. As I said before, updating the overrides table DOES work, I just had to do in manually as the app didn't make settings stick.
[Android Apps and Games] andQlimax:
Yeah root apps needs to do some tricks to work correctly on Android L. I found how to do it, I'll need to update my app.

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] dent42:
Heartbeat timeout

I just started having push notification problems in the last week on my HTC One rooted with CleanRom 4 4.4.2. This has been installed since I rooted it over a year ago.

They used to be almost instant. I also have a Galaxy S4 and a nexus 7 and with Hangouts I would get notification also simultaneously. Then last week HTC very slow to never. This also affects gmail and thats all I notice. Yahoo mail is fast I don't use FB that much .

So I installed PNF and set to recommended time and still nothing. In PNF on the gtalk monitor I see heartbeat timeouts and failed connections.

Any ideas??

Thank you,
[Android Apps and Games] dent42:
Follow up to previous post.

So all day today I received zero push notifications from Google, no mail unless checked and refreshed, no hangouts, etc on wifi or mobile data. Multiple cities etc.

When this started last week I did delete my Google account wiped data, cache restarted phone setup Google account and still nothing.

I am going to reflash a previous backup and see if that changes anything.
[Android Apps and Games] andQlimax:
Yeah, that really strange.. I don't have idea why suddenly you lost push notifications.. Did you greenify apps or disabled some system app? That all I can think

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] andyfmking:
Good job, works well. This problem was giving me a headache for a long time. Thank you.
[Android Apps and Games] dent42:
No I didn't, but I went ahead and upgraded firmware and installed newer rom and it seems to be working. Sometimes seems a little slow but they do show up without me having to open the app.

Gmail app does not seem to update on its own, or push like it used too.

I will keep mucking around with it and post my findings.

---------- Post added at 12:17 AM ---------- Previous post was at 12:01 AM ----------

Well my wife just informed me that her gmail on her HTC one with the same firmware and rom as I had when this started, has not sync'd gmail since July 14th, which was around the same time that I started having the problems also.

So now I am completely confused. Her hangouts has been working with no problems that we notice.

Does any of this make any sense??
[Android Apps and Games] semflow:
My device has installed this application. I use custom rom temasek cm11...Until now, i didn't receive notification from social media like facebook, path, twitter etc. I have no idea about it..Could anyone help me?
[Android Apps and Games] ziddey:
Is there anything that can be done to force a reconnect if the connection is lost? I still have to frequently hit connect, be it over wifi or cell.
[Android Apps and Games] JAY28W:
Greetings!!

I think I am a candidate for this app as I never get Play update notifications or auto installs. The only way I can update apps is by going into Play and checking. You guys agree?

Also, I would like any feedback you can give me about the following: On all my other devices, all with SlimKat, they all get a circle-arrow thingy (left hand side of the status bar-see pic) soon after boot up, but my current daily drive, a OnePlus One with SlimKat does not. I had always thought that this was the main Google account initial synch. It lasts about 1 to 2 seconds, and I never get new notifications until after this occurs. On other threads people think it may be related to other apps installed on the other devices that I do not have installed on my OPO.

Any thoughts? Thanks in advance... jay28w
[Android Apps and Games] Primetrack:
Lost Connection (Reconnect Manager)

Face a similar issue. The reconnection takes about 5 minutes. Is there some way around this ? Any enlightenment would be greatly appreciated.

Device: Redmi 1S

MIUI-JHCMIBF36.0.1

Regards
[Android Apps and Games] cuando15:
when i enter to *#*#246 it'said disable. this means that pnf won't work?
[Android Apps and Games] andQlimax:
The code should be *#*#426#*#*. Anyway it should not be disabled, it's mean you have Google play services disabled? Check in your settings-all apps that you don't have something disabled. What your phone and android version?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] cuando15:
thank's forma tour answer. with the code *#*#426#*#* show this screen but i can't do anything. google services is enable.
[Android Apps and Games] Nevoet:
Hi [MENTION=2790445]andQlimax[/MENTION], I was dealing with this issue for a long time (PNF didn't help at all), the problem is that this problem doesn't seem to occur on certain android versions. For example in my case I have both an Xperia ZL and a Z1, both of them work marvelously running android 4.2.2, the delay was present when updated to 4.3 ON BOTH OF THEM!. When KitKat was available (4.4.4) I think "yeah they probably fixed this annoying delay!" Well.... the didn't... so then i've tried messing with the wifi config (the advanced config WCNSS_qcom_cfg.ini), when checked the file and compared to the one from the 4.2.2, they where almost exactly the same. Like i've said before, PNF didn't help. My only solution was to revert back to the android version that didn't have this delay. Its really weird, it is a problem/feature for battery saving?, there is any way posible that this issdue is introduced by different prima drivers? Different GCM version?

best regards!
[Android Apps and Games] andQlimax:
Hi, Are you sure the problem is not caused by the wifi disconnecting while the screen is off? Sounds like that. Pnf doesn't solve that problem

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Apps and Games] Nevoet:
From the router I can see that the device is "connected". But now that you mention it, when there is a delay for a long time, if I ping the device, SOMETIMES, the push notifications come almost in time. Other thing is that when I left the phone idling for lets say, 30min, when I try to ping, there is a delayed response for a few seconds (2 to 5sec), then it ping normally (screen off, 200+ms)

--EDIT--

The wifi is not disconnecting: I can ping the phone and the delay is still there.
[Android Apps and Games] blax123:
What if my messages comes in with a delay of 1-2 min and im using your app and they still comes with a delay of 1-2 min. And my device dont drops it connection and im removing whatsapp for example from the recents app list like you are recommending. Any idea what could cause it?

Im using an OnePlus One with the latest firmware CM11/38R, Router: AVM Fritzbox 6360

PS: This appears only on WiFi
[Android Apps and Games] JuneHan:
It's strange with my phone(Xperia Z SO-02e). I set mobile heartbeat interval to 2M and WIFI to 1M with PNF. Testing for a while in celluar network, I see the cell alarm interval changes from time to time , and finally reaches up to 6M(300s). But when using wifi network, the wifi alarm interval just keeps the value I set.
[Android Apps and Games] andQlimax:
If you are using the root version, select the intervals and press apply, on the monitor you should see the same values that you set on PNF.
[Android Apps and Games] kislyakoff:
Hi! I have a connection problem in cell network only. My phone disconnects after 5 min every time. Connection restores automaticly when I switch on WiFi or when I press Connect in Google Play Services.

I hoped that connection should keep alive by heartbeat cell alarm. But it isn't happens.
[Android Apps and Games] andQlimax:
If the phone disconnect from the network, pnf and play services can do nothing.

The phone should not lost the network.

The heartbeat keep alive the push connection, not the whole internet connection. When the connection to the network is lost, the countdown stops untill the network is available again