Messenger is not being kept under hibernation for some reason - Greenify

Basically after one of the latest FB Messenger updates, it's being woke up for some reason. Unrooted, Moto X 2014 retail running 5.1 and running current 2.7.1 release - I can't pinpoint the reason of the wakeup since the device isn't rooted but apparently it said "Wifi was scanned" other then GCM probably.
For further info, FB Messenger version is 42.0.0.17.137. Had a couple updates since it started but still happening.

rogeriorp said:
Basically after one of the latest FB Messenger updates, it's being woke up for some reason. Unrooted, Moto X 2014 retail running 5.1 and running current 2.7.1 release - I can't pinpoint the reason of the wakeup since the device isn't rooted but apparently it said "Wifi was scanned" other then GCM probably.
For further info, FB Messenger version is 42.0.0.17.137. Had a couple updates since it started but still happening.
Click to expand...
Click to collapse
If you can manage to run this shell command with USB debugging enabled and connected, you will get wake-up monitor on non-root device:
Code:
pm grant com.oasisfeng.greenify android.permission.READ_LOGS

oasisfeng said:
If you can manage to run this shell command with USB debugging enabled and connected, you will get wake-up monitor on non-root device:
Code:
pm grant com.oasisfeng.greenify android.permission.READ_LOGS
Click to expand...
Click to collapse
Yeah thanks, I know the culprit - it is facebook messenger. I don't even have the main facebook app installed to wakelock it, one of the updates broke greenify on no-root mode.

rogeriorp said:
Yeah thanks, I know the culprit - it is facebook messenger. I don't even have the main facebook app installed to wakelock it, one of the updates broke greenify on no-root mode.
Click to expand...
Click to collapse
Do you mean auto-hibernation in non-root mode is not working on your device? I made some tweak and bugfixes for non-root auto-hibernation in 2.8 beta 1, could you give it a try?

oasisfeng said:
Do you mean auto-hibernation in non-root mode is not working on your device? I made some tweak and bugfixes for non-root auto-hibernation in 2.8 beta 1, could you give it a try?
Click to expand...
Click to collapse
Will do tomorrow and report back in this post.
What is happening is, I set a gesture shortcut on my launcher to manually hibernate apps with all due accessibility access greenify requires in non-root mode, whenever im turning off the display. I dont do auto-hibernation since everything used to be fine, until facebook messenger started misbehaving; no other apps other than that one will wake up the device.

rogeriorp said:
Will do tomorrow and report back in this post.
What is happening is, I set a gesture shortcut on my launcher to manually hibernate apps with all due accessibility access greenify requires in non-root mode, whenever im turning off the display. I dont do auto-hibernation since everything used to be fine, until facebook messenger started misbehaving; no other apps other than that one will wake up the device.
Click to expand...
Click to collapse
Looks like auto-hibernation is working, but Facebook Messenger got woken somehow. Please identify the waker of Facebook Messenger with wake-up tracker, mentioned above. Thus I could give useful suggestion on that.

oasisfeng said:
Looks like auto-hibernation is working, but Facebook Messenger got woken somehow. Please identify the waker of Facebook Messenger with wake-up tracker, mentioned above. Thus I could give useful suggestion on that.
Click to expand...
Click to collapse
I thought I was the only one who is suffering from
Facebook app and Facebook messenger refusing to
Stay in hibernation! Am rooted, xposed framework
Version 73 up and running, boost mode working but
These two annoying apps by facebook were working
Well some months back but after some updates to
These apps, they keep waking themselves up from
Greenify hibernation.....
I started observing there behaviour and I discovered:
1) if you open any other user app that connects to the
Internet, Facebook and messenger come out of hibernation
2) if you hibernate without data connection, once you
Connect to the Internet facebook comes out of hibernation
3) if you open what's app, twitter, Instagram or any other
Social networking app, Facebook comes out of hibernation.
It's really, really, annoying.....
Am using the non donation app and wonder if the
Paid version of Greenify can stop this.......

Bolumstar said:
I thought I was the only one who is suffering from
Facebook app and Facebook messenger refusing to
Stay in hibernation! Am rooted, xposed framework
Version 73 up and running, boost mode working but
These two annoying apps by facebook were working
Well some months back but after some updates to
These apps, they keep waking themselves up from
Greenify hibernation.....
I started observing there behaviour and I discovered:
1) if you open any other user app that connects to the
Internet, Facebook and messenger come out of hibernation
2) if you hibernate without data connection, once you
Connect to the Internet facebook comes out of hibernation
3) if you open what's app, twitter, Instagram or any other
Social networking app, Facebook comes out of hibernation.
It's really, really, annoying.....
Am using the non donation app and wonder if the
Paid version of Greenify can stop this.......
Click to expand...
Click to collapse
Can you see any small text below the awake apps, like "Facebook is woken by XXX ... ago". You may need to enable the "Wakeup Tracker" option in experimental features first (not required on some devices).

oasisfeng said:
Can you see any small text below the awake apps, like "Facebook is woken by XXX ... ago". You may need to enable the "Wakeup Tracker" option in experimental features first (not required on some devices).
Click to expand...
Click to collapse
I don't think I have that option in my two different phones
Galaxy Note 2 GT-N7100 and AndroidOne.
Again as I opened what's app which I had removed from
Hibernation earlier, hibernated every app, put on data
Connection, opened what's app in about 8 seconds
Facebook and messenger came out of hibernation by
Themselves.
Am using IvanMeler CM 12.1 latest version but the same
Has been happening in CMX, RR, Nameless rom etc

Mine pops like this, unrooted: it says wifi was scanned, sorry about the portuguese. Running the latest beta, like you said oasis.
http://i.imgur.com/ELiJrQ1.png.

@oasisfeng, see this sub thread also. http://forum.xda-developers.com/apps/greenify/gcm-push-notification-behaviour-t3225994
He is also complaining of the same issue. From his explanation and also from the first image in post no.9 above, it seems that connection to the internet triggers the wakeup.
Just to clarify the issue.
I don't use Facebook or Messenger.

Related

Google Cloud Messaging for push notification doesn't work

I have intalled both Greenify and the donate packet, i tried hibernate Facebook and Facebook Messenger. But there are no any notification pushed on my device. Can someone help me?
Sorry for my bad English
Is your device rooted? Did you also install xposed framework? Is the module activated in Xposed and the option checked in greenify?
enban said:
Is your device rooted? Did you also install xposed framework? Is the module activated in Xposed and the option checked in greenify?
Click to expand...
Click to collapse
Yes, of course. I rooted my phone, installed all apps required.
Greenifying Facebook will be a problem since the implementation of notifications by Facebook is different from the standard android way (as explained by the Dev. elsewhere).
But if you greenify Messenger, it will work with notifications unless Facebook changed something recently.
Search the main thread for other solutions.
Sorry for noob question
Grenify stuck at splash screen. On my galaxy nexus rom 4.4.4 why?
tnsmani said:
Greenifying Facebook will be a problem since the implementation of notifications by Facebook is different from the standard android way (as explained by the Dev. elsewhere).
But if you greenify Messenger, it will work with notifications unless Facebook changed something recently.
Search the main thread for other solutions.
Click to expand...
Click to collapse
So if i greenifyed Facebook, i can't get notifications anymore? It only works with Messenger app?
If i ungrenify Facebook, will notifications works normally again?
If you ungreemify any app, it should work as it was before.

Help please: why is the Facebook always working after hibernated?

1. Rooted Nexus 6p with Xposed framework. I hibernated both facebook and Google apps. But whenever I turn on the Greenify to check the status, I always see Facebook and Google apps are shown to be not hibernating automatically. The reason is shown to be working. But I didn't open anything. Any ideas on how to deal with this?
2. I also see many apps are under woken temporarily group (most of them are google apps) even though I hibernated all of them. Is it because I used the shallow hibernation?
carrygo said:
1. Rooted Nexus 6p with Xposed framework. I hibernated both facebook and Google apps. But whenever I turn on the Greenify to check the status, I always see Facebook and Google apps are shown to be not hibernating automatically. The reason is shown to be working. But I didn't open anything. Any ideas on how to deal with this?
2. I also see many apps are under woken temporarily group (most of them are google apps) even though I hibernated all of them. Is it because I used the shallow hibernation?
Click to expand...
Click to collapse
1. When an app is shown as working, tap and highlight it, then open the three dot menu at the top and tap 'put app into hibernation'. You will get a dialogue box with a warning and also an option to ignore its state. Check that and it will hibernate.
2. That is the expected behaviour when you opt for shallow hibernation.

Grennify Facebook (system app) not working as expected

I have an HTC 10 and some apps came pre-installed as system apps, like Facebook, Instagram and others... I have Greenify donation package and I also use the Xposed module.
I have enabled the option to greenify system apps and I'd tried to hibernate Facebook. It somewhat works, the app is hibernated successfully. But when I open it, it doesn't seem to wake up completely. I mean, sometimes the feed is not updated, I swipe to the notifications pane and pull-to-refresh but I get an error "Can't connect at the moment", I try to open an external link that someone posted but I also get the "Can't connect at the moment" error message.
At first I wasn't aware of what was causing this but I then remembered checking Greenify and I stopped auto-hibernating Facebook. Now, every time I open the app, everything is working. Which makes me think that the problem is within Greenify.
I don't know if the real cause is because Facebook is a system app on my phone or for some reason Greenify can0t properly handle hibernation on the Facebook app.
Can anyone advise?

GCM Wakeup only works when phone is awake

I hibernated whatsapp and activated the option that apps wake up when they get gcm push messages.
My problem is that whatsapp only wakes up when my screen is open.
I send myself messages from another phone and waited some minutes but the messages don't arrive until I pressed the home button and woke up my phone.
shouldn't the messages also arrive while my phone is sleeping?
Emre67511 said:
I hibernated whatsapp and activated the option that apps wake up when they get gcm push messages.
My problem is that whatsapp only wakes up when my screen is open.
I send myself messages from another phone and waited some minutes but the messages don't arrive until I pressed the home button and woke up my phone.
shouldn't the messages also arrive while my phone is sleeping?
Click to expand...
Click to collapse
The issue may be with Doze, not Greenify. Uninstall Greenify and check.
tnsmani said:
The issue may be with Doze, not Greenify. Uninstall Greenify and check.
Click to expand...
Click to collapse
I removed whatsapp from greenify and it worked.
do I have to add greenify to the Whitelist of aggressive doze ???
maybe doze affects greenify so that it don't works in doze mode
I only have Whitelisted play services atm
Emre67511 said:
I removed whatsapp from greenify and it worked.
do I have to add greenify to the Whitelist of aggressive doze ???
maybe doze affects greenify so that it don't works in doze mode
I only have Whitelisted play services atm
Click to expand...
Click to collapse
As far as I know, Greenify is not affected by Doze since it has a persistent service running always. I have not added Greenify to the white list. WhatsApp also is not selected for hibernation but still, like you, I also get the notification only when I unlock the phone.
tnsmani said:
As far as I know, Greenify is not affected by Doze since it has a persistent service running always. I have not added Greenify to the white list. WhatsApp also is not selected for hibernation but still, like you, I also get the notification only when I unlock the phone.
Click to expand...
Click to collapse
when whatsapp is not hibernated everything works fine. only when I hibernate whatsapp I get the messages when the screen is on.
so the problem is that greenify somehow don't runs in the background when the phone is sleeping
Emre67511 said:
when whatsapp is not hibernated everything works fine. only when I hibernate whatsapp I get the messages when the screen is on.
so the problem is that greenify somehow don't runs in the background when the phone is sleeping
Click to expand...
Click to collapse
There are many things that have to 'go right' for hibernating apps to wake up and post a notification on queue (eg: when a message arrives). Whatever link in the chain is missing may be out of Greenify's control. Suggest excluding WhatsApp from Greenify if instant notification is a priority.
Emre67511 said:
when whatsapp is not hibernated everything works fine. only when I hibernate whatsapp I get the messages when the screen is on.
so the problem is that greenify somehow don't runs in the background when the phone is sleeping
Click to expand...
Click to collapse
The advice for Greenify is not to hibernate IM apps if you rely on them.
tnsmani said:
The advice for Greenify is not to hibernate IM apps if you rely on them.
Click to expand...
Click to collapse
it's not that important because I look often at my phone I just wondered why I only get the messages when the screen is turned on

Some apps get duplicate notifications when Greenify xposed features enabled.

Hello,
Some apps like twitter, reed.co, and even push notification tester get duplicate notifications even if they are not in the hibernation list.
Disabling greenify in the exposed modules list fixed that.
I have the same problem with every push notification, every notification is twice. Even with apps which are not greenified.
Is there any fix or workaround?
I have the same problem but only with Twitter. For other apps is fine.
I tested again and I only get double notifications when I activate "GCM Push for greenified Apps" in xposed settings of Greenify. If I turn that off I get the notifications as it should be...
Now I have to test if notifications are being shown without activating this although apps are in greenified state...
same here, I disabled "GCM Push for greenified Apps and double notifications are gone!!
patrickdrd said:
same here, I disabled "GCM Push for greenified Apps and double notifications are gone!!
Click to expand...
Click to collapse
Some notifications may be delayed with this option disabled. However, recent Greenify enhancements support per app hibernation modes so you can likely find a satisfactory balance. GCM push for hibernated apps was a nice option at one time but is now depreciated IMO as doze and Greenify have evolved.
1) I don't see any delayed notifications, the apps I want to have notifications for are excluded from hibernation of course
2) I'm using latest greenify 3.8.9 from apkmirror
3) I don't have doze I guess because I've got KitKat and LolliPop,
all in all, it was a nice feature to have, but it has a lot of issues/doesn't work,
besides duplicate notifications, somebody has to test and find himself (by trial and error) which apps are
supported to... "pass through" and which don't work
I don't have any delayed notification either.
All notifications timing are working just fine. Even greenifing facebook, whatsapp, or viber makes them get their notifications correctly and instantly (yet I don't recommend greenifying the most frequently used apps like facebook or messenger).
The only issue i have is that duplicate notifications when greenify is enabled.
Maybe because i'm still on Kitkat, I don't know.
FuTChY said:
I don't have any delayed notification either.
All notifications timing are working just fine. Even greenifing facebook, whatsapp, or viber makes them get their notifications correctly and instantly (yet I don't recommend greenifying the most frequently used apps like facebook or messenger).
The only issue i have is that duplicate notifications when greenify is enabled.
Maybe because i'm still on Kitkat, I don't know.
Click to expand...
Click to collapse
That's because you probably have GCM push enabled in greenify Xposed settings.
Sent from my LG-H850 using Tapatalk
Hadi99 said:
That's because you probably have GCM push enabled in greenify Xposed settings.
Sent from my LG-H850 using Tapatalk
Click to expand...
Click to collapse
Yes, that's why.
I disabled it and the issue is fixed. But unfortunately I had to enable it again as I'm greenifying some apps that receive push notifications.

Categories

Resources