In the stock android main settings you can manually restrict background data for individual apps (though the settings menu prompts you that it is usually better to find the option for this within the app itself which clearly seems to be the android paradigm).
I don't see anyway though, to centrally control foreground data for individual apps. I.e. If I want an app that relies on an internet connection to refresh on WiFi only but the app itself doesn't have an option for this and I don'[t want to turn network data off completely (as I still want to use it for other apps). Other than just not opening that particular app does Android provide any way to handle this like iOS does?
Somewhat related is the new Hangouts app. On iOS I notice it provides an in-app setting to use WiFi only but the Android app does not seem to have this option (v2.3.75067996). Is there any particular reason for this? An architectural difference between Android and iOS maybe?
Hi there,
I purchased full version of Greenfy and now I can take advantage of those extra experimental features...
For example, maybe there's someone that could explain what "GCM push for greenfied apps does?"...The only result I can see is like this:
I greenfied Facebook Messenger, Facebook, S Health, Maps, HERE Maps...because I don't want these apps be woken again only if there are some received notifications because at the same time I don't want any missed notifications from these apps...does this experimental feature " GCM push for greenfied apps" helps me to obtain what I need?
Well, I've seen while I'm not connected to Internet neither via WiFi nor Data, these apps are hibernated and further wakeups no longer occur but when I connect to the Internet, Messenger is set like this: It's automatically placed into "Not hibernating automatically" with this status:
Working
20:56 ago content provided: Messenger Logged!
And the other one, Facebook is placed automatically under "Will hibernate in minutes after screen is OFF"...what do all these mean??
These 2 apps are woken up automatically by the system although there were no notifications in either case...
I've just connected to the internet and these apps woken up...is it a normal behaviour?
Maybe someone more experimented could explain me the whole process...Thanks in advance!!
Now I see both apps are under the same category: "Will hibernate in minutes after screen is OFF"...how many minutes is all about???
last1left91 said:
Hi there,
I purchased full version of Greenfy and now I can take advantage of those extra experimental features...
For example, maybe there's someone that could explain what "GCM push for greenfied apps does?"...The only result I can see is like this:
I greenfied Facebook Messenger, Facebook, S Health, Maps, HERE Maps...because I don't want these apps be woken again only if there are some received notifications because at the same time I don't want any missed notifications from these apps...does this experimental feature " GCM push for greenfied apps" helps me to obtain what I need?
Well, I've seen while I'm not connected to Internet neither via WiFi nor Data, these apps are hibernated and further wakeups no longer occur but when I connect to the Internet, Messenger is set like this: It's automatically placed into "Not hibernating automatically" with this status:
Working
20:56 ago content provided: Messenger Logged!
And the other one, Facebook is placed automatically under "Will hibernate in minutes after screen is OFF"...what do all these mean??
These 2 apps are woken up automatically by the system although there were no notifications in either case...
I've just connected to the internet and these apps woken up...is it a normal behaviour?
Maybe someone more experimented could explain me the whole process...Thanks in advance!!
Now I see both apps are under the same category: "Will hibernate in minutes after screen is OFF"...how many minutes is all about???
Click to expand...
Click to collapse
Your understanding of GCM push is correct. It is meant to ensure that you don't miss any notifications from greenified Apps.
Facebook and Messenger are always in a different category. They will behave in their own fashion even if you greenify them.
"Working" means that the process is running. After it completes what it has to do, it will go back to 'will hibernate after screen is off'. That hibernation takes place anywhere from 2 minutes to 5 minutes after the screen is off.
Hope you are clear.
tnsmani said:
Your understanding of GCM push is correct. It is meant to ensure that you don't miss any notifications from greenified Apps.
Facebook and Messenger are always in a different category. They will behave in their own fashion even if you greenify them.
"Working" means that the process is running. After it completes what it has to do, it will go back to 'will hibernate after screen is off'. That hibernation takes place anywhere from 2 minutes to 5 minutes after the screen is off.
Hope you are clear.
Click to expand...
Click to collapse
Thanks..you were very clear with your explanation but this morning something strange happened!
I connected to the Internet and played a bit with messenger app on my mobile data...then I disconnected my mobile data and closed the process associated to the Messenger App...I had to close it manually from Active Apps screan...it seems there's no other way...
And after 2-3 minutes or even more I checked my Active Apps...I did a shortcut with Quick Shorcut Maker and launching it through a swipe gesture from anywhere using GMD Gesture Control...I'm such disperate to close all the apps's processes when they(the apps) are no longer in use...Well, deep sleep has to stay deep sleep and I don't want any apps to run in background unless they are related to notifications...but when I'm not connected to the Internet I want all my apps's processes closed except apps like : Swapps, Internet SpeedMeter , GMD Gesture Control, My Data Manager, Greenfy, Tasker, Samsung Keyboard and System UI whose associated processes MUST stay there, under Active Apps Category List...
Well, I've seen Greenfy provides me a shortcut for the greenfied apps...but I don't know what this shortcut does..
Well....let's say at the moment X I have these 2 apps, Messenger and Facebook under Active apps, which means their processes are running...
Well, when I'm greenfying them which means when I press on that shortcut button shouldn't those apps be eliminated from Active Apps List..because this doesn't happen...I still have to enter myself and close the processes manually...then what's the shorcut's point? )...The apps were already greenfied through Greenfy App...weeks ago...do you get my point?..
I wanted that shortcut to automatically eliminate those 2(or any) running processes when I press on it!! Do you know any ways to obtain this behaviour so I weren't under the necessity to press explicitly on the "Stop" button?? Thanks in advance!!
@last1left91
I think that by manually killing a running process, you lose more battery. It may also affect the stability of the Apps concerned.
The best way to do it is using Greenify. But I don't know why these two are not hibernated when you use the shortcut.
Let us wait for @oasisfeng
First of all, let me explain the state words. "Working" means the app is reporting it self actively working to Android system thus should avoid being killed. Greenify respects this state unless it is black-listed (check "always ignore its state" when manual hibernating a "working" app). "content provided" means its content is accessed by some other app in a cross-app-interaction way (usually via APIs). In your case, its most probably accessed by Facebook app. Then the Facebook app itself is usually woken by other apps with Facebook feature integration (login, "like" and etc.) In most cases, they do hibernate, but usually woken when you launch other apps (with Facebook integration). You can let it go since Greenify should automatically hibernate them again after screen goes off next time.
The shortcut of "Hibernate" will only put apps in "pending" section into hibernation. If an app is shown as "Working", it will not be hibernated by the shortcut too. To override that, manually hibernate it once and check "always ignore its state" there.
After enabling aggressive doze mode, my battery life improves greatly. However, the price is that I only receive gmail notification after screen on. I have whitelisted gmail app and google play services of course, even all other apps related to Google. Other apps I whitelist work just fine, like Whatsapp and WeChat. So is there any other apps I need to add to whitelist to make gcm work? Or the aggressive doze mode has something wrong with it?
I'm using samsung s6 edge, marshmallow with xposed, and greenify in boost mode. Before updating to version 2.9, everything was fine.
zhjn921224 said:
After enabling aggressive doze mode, my battery life improves greatly. However, the price is that I only receive gmail notification after screen on. I have whitelisted gmail app and google play services of course, even all other apps related to Google. Other apps I whitelist work just fine, like Whatsapp and WeChat. So is there any other apps I need to add to whitelist to make gcm work? Or the aggressive doze mode has something wrong with it?
I'm using samsung s6 edge, marshmallow with xposed, and greenify in boost mode. Before updating to version 2.9, everything was fine.
Click to expand...
Click to collapse
Have you found the other apps to whitelist? I am having the same issue.
price31 said:
Have you found the other apps to whitelist? I am having the same issue.
Click to expand...
Click to collapse
I'm afraid not. I disabled aggressive doze mode now?
zhjn921224 said:
After enabling aggressive doze mode, my battery life improves greatly. However, the price is that I only receive gmail notification after screen on. I have whitelisted gmail app and google play services of course, even all other apps related to Google. Other apps I whitelist work just fine, like Whatsapp and WeChat. So is there any other apps I need to add to whitelist to make gcm work? Or the aggressive doze mode has something wrong with it?
I'm using samsung s6 edge, marshmallow with xposed, and greenify in boost mode. Before updating to version 2.9, everything was fine.
Click to expand...
Click to collapse
and @price31
Google has not set the notifications from the Gmail app as priority, the logic being that instant messaging has more urgency than emails. Whether you like it or not, I think that you will not get Gmail notifications during Doze.
It may be true, but this issue only happens when I enable "aggressive doze" mode in Greenify. I can still receive gmail notification even if I leave my phone there for hours (when it is in doze).
tnsmani said:
and @price31
Google has not set the notifications from the Gmail app as priority, the logic being that instant messaging has more urgency than emails. Whether you like it or not, I think that you will not get Gmail notifications during Doze.
Click to expand...
Click to collapse
zhjn921224 said:
It may be true, but this issue only happens when I enable "aggressive doze" mode in Greenify. I can still receive gmail notification even if I leave my phone there for hours (when it is in doze).
Click to expand...
Click to collapse
May be the maintenance windows in Doze are only a few minutes apart whereas in AD, they are a few hours apart.
tnsmani said:
May be the maintenance windows in Doze are only a few minutes apart whereas in AD, they are a few hours apart.
Click to expand...
Click to collapse
Aggressive Doze effectively doubles the starting interval between maintenance windows, which should be one hour (in AD) if I remember correctly.
---------- Post added at 09:31 PM ---------- Previous post was at 09:22 PM ----------
As always, you can enable the doze debug notification to figure the correlation between doze and the unexpected behaviors. It works for both stock doze and Aggressive Doze.
Very similar configuration (Samsung s6, stock marshmallow with root, xposed, and greenify beta in boost mode) and same issue as TE here:
Gmail notifications are coming in only approximately once per hour with "aggressive doze" on after the device falls in "doze idling"/ "doze idle mode", so the time frame mentioned by @oasisfeng in post #7 appears to be correct. As soon as I completely disabele aggressive doze, all mails come in immediately as expected (stock doze not tested). What I did to resolve the issue (to no avail):
Gmail ist whitelisted in the battery section
Gmail is not set up for greenifying
Even GCM push for greenified apps is enabled
Mobile/wifi heartbeat is set to 6/5 minutes with PNF
Is there really nothing else we could do? Is it really as mentioned by @tnsmani, that Google mails will come in never (or only once per hour) during doze? I am asking because not too many other people appear to report this issue so the issue might also be related to some particularities of Samsung phones.
killerm said:
Very similar configuration (Samsung s6, stock marshmallow with root, xposed, and greenify beta in boost mode) and same issue as TE here:
Gmail notifications are coming in only approximately once per hour with "aggressive doze" on after the device falls in "doze idling"/ "doze idle mode", so the time frame mentioned by @oasisfeng in post #7 appears to be correct. As soon as I completely disabele aggressive doze, all mails come in immediately as expected (stock doze not tested). What I did to resolve the issue (to no avail):
Gmail ist whitelisted in the battery section
Gmail is not set up for greenifying
Even GCM push for greenified apps is enabled
Mobile/wifi heartbeat is set to 6/5 minutes with PNF
Is there really nothing else we could do? Is it really as mentioned by @tnsmani, that Google mails will come in never (or only once per hour) during doze? I am asking because not too many other people appear to report this issue so the issue might also be related to some particularities of Samsung phones.
Click to expand...
Click to collapse
What I said comes from here: https://developers.google.com/cloud-messaging/concept-options
It says
"High priority. GCM attempts to deliver high priority messages immediately, allowing the GCM service to wake a sleeping device when possible and open a network connection to your app server. Apps with instant messaging, chat, or voice call alerts, for example, generally need to open a network connection and make sure GCM delivers the message to the device without delay. Set high priority only if the message is time-critical and requires the user’s immediate interaction, and beware that setting your messages to high priority contributes more to battery drain compared to normal priority messages.
Normal priority. This is the default priority for message delivery. Normal priority messages won't open network connections on a sleeping device, and their delivery may be delayed to conserve battery. For less time-sensitive messages, such as notifications of new email or other data to sync, choose normal delivery priority."
@tnsmani
Darn. Then, of course, we must expect that GMail will stick to Google's own GCM/priority policy. And it is obvious that stock doze will lead to the same GMail issue as Greenify's aggressive doze
New idea: It would already help if I could wake up the device when it has been idling for 20 minutes or so. I would then receive all e-mail notifications at least every 20 minutes. Greenify provides an action to wake up the device for Tasker. Is there any chance to identify the device's current doze state with tasker so that I could start a timer or set a calendar event (less energy intensive) when the device goes into doze mode? Unfortunately, even Tasker appears not to be realiable if the device is idling, unless Tasker's option "reliable alarms" is turned on (http://bit.ly/2cfvAaZ, http://bit.ly/2cfx4lo). This option, however, apparently prevents the device from entering any kind of doze state and thus makes all efforts to save battery with doze mode quite useless.
So if I need reliable notifications when E-Mails are coming in, I could (simply) set tasker to "reliable alarms". But in this case, the device will never enter any kind of doze mode. :-/
Is there any other option you can think of?
Best regards
Mick
Ok, I am not the first one with the idea to abuse tasker's "reliable alarm" option in order to disable doze...
https://www.reddit.com/r/Android/co...g_tasker_on_marshmallow_its_reliable/.compact
Gesendet von meinem SM-G920F mit Tapatalk
Hi!
after some research i realised that SolMail is an email client with gcm feature (i use it with yahoo)
is there any other mail apk able to notify over GCM?
i'm testing SolMail in this days and notifications are a bit random (i set to 3 mins the update time and put the app in white list of aggressive doze)
can be useful to reduce heartbeat?
thanks in advance.
maserati1972 said:
Hi!
after some research i realised that SolMail is an email client with gcm feature (i use it with yahoo)
is there any other mail apk able to notify over GCM?
i'm testing SolMail in this days and notifications are a bit random (i set to 3 mins the update time and put the app in white list of aggressive doze)
can be useful to reduce heartbeat?
thanks in advance.
Click to expand...
Click to collapse
Aquamail supports GCM. Mature, robust client with excellent support via user forum. Free and paid variants. Find it in the Play Store.
Believe K9 also supports GCM along with Google's native app. Also take a look at the free Microsoft Outlook client.
Thanks Davey126
this afternoon i tried many mail clients...i found this:
Outlook works on latest versions (previous don't connect), same for CloudMagic (now Newton Mail);
Both in last releases are super heavy for my little Droid4 (CM13);
so i'm experimenting now "myMail" that spit instant inbox notifications even greenifying the app...i'm very impressed!
on the other hand is over 90MB which wiredly figures on cached process and never on running ones...
is in your opinion Aquamail lighter and efficient with Greenify and notifications?
maybe i could try an older release?
Thanks!!!
maserati1972 said:
Thanks Davey126
this afternoon i tried many mail clients...i found this:
Outlook works on latest versions (previous don't connect), same for CloudMagic (now Newton Mail);
Both in last releases are super heavy for my little Droid4 (CM13);
so i'm experimenting now "myMail" that spit instant inbox notifications even greenifying the app...i'm very impressed!
on the other hand is over 90MB which wiredly figures on cached process and never on running ones...
is in your opinion Aquamail lighter and efficient with Greenify and notifications?
maybe i could try an older release?
Thanks!!!
Click to expand...
Click to collapse
Aquamail satisfied all my needs and runs well on lower end devices. That said mail clients are like a box of chocolates. What is beautiful to one is distasteful to another. Try and profit (or not).
I have a dual sim Sony Z5 running Android 6.0.1, but I am posting here because my question should be generic and not Sony-specific.
I have been doing lots of reading online, but cannot find the answer to these very basic questions:
When exactly does Doze kick in? Some sites say after 1 hour, some say after 3 or more, and Android’s website only says “after a period of time” (https://developer.android.com/training/monitoring-device-state/doze-standby.html ). Isn’t there any official documentation on this?
After a device enters Doze mode, how often does the system exit Doze and for how long? The previous link only says: Periodically, the system exits Doze for a brief time to let apps complete their deferred activities. During this maintenance window, the system runs all pending syncs, jobs, and alarms, and lets apps access the network. Again, isn’t there any official documentation on this?
Is there a way to monitor when the phone was in Doze and when in a maintenance windows
I want 3 apps to continue functioning normally even in Doze mode: whatsapp, k9 mail (on which I use imap idle for push email to my private email address), and Good Work (now owned by Blackberry) to connect to my company’s Exchange server and retrieve work emails etc. How can I achieve this? Is it documented anywhere if these apps issue the high priority GCM messages that Doze expects? I have excluded these apps from the battery optimization settings, yet I have been experiencing erratic behaviour (sometimes they sync, sometimes they don’t) when I leave the phone on a desk, connected to wifi (with keep wifi on during sleep set to always).
I am open to considering another email client which supports imap idle (as long as it doesn’t store my data and passwords on its servers (like Type App / Blue mail do), but I cannot replace Good Work with anything else as that is the only app which my employer allows to connect to its network.
Incidentally, I didn’t want Marshmallows on my phone, also because I believe Sony’s Stamina is more transparent and efficient (http://www.xda-developers.com/sonys-stamina-mode-did-it-first/ ); I was hoping my phone would ship with Lollipop, but unfortunately it came with Marshamllows. Ah, I cannot root because otherwise Good Work wouldn’t work.
This lack of transparency is a step in the wrong direction; Google is behaving like Apple in telling us not to worry our pretty little heads, but Google doesn't always know best! Apps which rely on push notifications may not work unless developers rewrite them, and there is no way to disable doze. it's crazy!
cdl2 said:
I
Is there a way to monitor when the phone was in Doze and when in a maintenance windows [...] ?
Click to expand...
Click to collapse
I have found that the GSAM battery app tracks it: https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=en_GB ( charts --> other).
I haven't found a way to monitor it from Android's system - not on my sony Z5, at least.
No one knows?
Anyway, this partial solution works for me: http://androidforums.com/threads/ma...x-is-preventing-doze-with-macrodroid.1058445/
It's about using MacroDroid to wake up the phone every 45 minutes, thus prveenting Doze mode from kicking in at all. Battery usage is acceptable (1% /hour with two push emails on)
No updates? Am I the only one who cares about push email not working?
cdl2 said:
No updates? Am I the only one who cares about push email not working?
Click to expand...
Click to collapse
Go to settings then go to power manager(in my phone) and click on battery optimization and select apps that you want to run in doze mode and select don't optimized.
I hope it solved your problem.
No, it does not. Android's official documentation explains that whitelisting is effectively useless, because 'other restrictions still apply' :
https://developer.android.com/train...doze-standby.html#support_for_other_use_cases
I have tried, and imap idle with k9 mail does not work when my Sony z5 is in doze, despite the whitelisting
I have the following privacy policy which is located here: http://minutewalks.inthepress.biz/PrivacyPolicy.html The text of the policy is:
MinuteWalks Privacy Policy
This app collects location data. The data collected remains on your device and is only stored and used in order to calculate the distance you have travelled. All the analysis is done on your device. No data is communicated to or shared with us or anyone else. No data is stored after monitoring is stopped. Monitoring continues in the background in order to allow you to continue receiving audible notifications and carry on using other apps to listen to music, provide other fitness monitoring or anything else you want to do. So long as monitoring is ongoing you will see a notification. You can stop monitoring at any time by pressing the stop button in the app. If you have closed the app you can restart it as normal to stop monitoring or you can restart it by tapping on the notification.
Click to expand...
Click to collapse
Google just keep saying: "make sure your privacy policy specifically covers user privacy" and are marking my app as non-compliant.
Can anyone help me understand this so that I can fix it?