Titanium Backup schedules not executed - Huawei P10 Plus Questions & Answers

Is anyone else having the issue of TB schedules not being executed when the phone is sleeping? I have set all the Battery Optimizations set to manual for both TB and the TB root key app. Sometimes the scheduled task is started when I wake up the phone and sometimes (at night) it's being ignored entirely. I am on rooted Oreo stock but I saw the same on Nougat.

Fixed
khaberz said:
Is anyone else having the issue of TB schedules not being executed when the phone is sleeping? I have set all the Battery Optimizations set to manual for both TB and the TB root key app. Sometimes the scheduled task is started when I wake up the phone and sometimes (at night) it's being ignored entirely. I am on rooted Oreo stock but I saw the same on Nougat.
Click to expand...
Click to collapse
OK, fixed it - I had to activate it under Ignore Battery Optimizations

khaberz said:
OK, fixed it - I had to activate it under Ignore Battery Optimizations
Click to expand...
Click to collapse
Having the same problem. Where is the option for "Ignore Battery Optimizations", is it a Titanium option or a system option? Thanks

palosanto0 said:
Having the same problem. Where is the option for "Ignore Battery Optimizations", is it a Titanium option or a system option? Thanks
Click to expand...
Click to collapse
It's a system setting, somewhere under the Battery settings. I am not on EMUI anymore, so I can't tell you exactly. However, it didn't fix my problem permanently. I have moved on to LineageOS meanwhile, where these problems don't exist anymore.

khaberz said:
It's a system setting, somewhere under the Battery settings. I am not on EMUI anymore, so I can't tell you exactly. However, it didn't fix my problem permanently. I have moved on to LineageOS meanwhile, where these problems don't exist anymore.
Click to expand...
Click to collapse
Unfortunately it does not work in my Xiaomi redmi Note 4X.
I found the option to activate "Ignore Battery Optimizations", however if I don't leave the Titanium backup PRO running, the scheduled backups are not performed.
Last week I have been searching internet for a solution, however still I have not found a satisfactory one.
Kind regards and thanks for your advice,
Javi

<deleted - see next post for updated info>

Titanium Backup schedules not executed (or interrupted after being started) and/or its related notifications not being shown appears to be an issue that is caused by crazy additional 'features' as implemented at some devices to improve battery life. This especially happens at OnePlus devices running Oreo (Android 8), but may possibly also appear at devices of other brands (Xiaomi?). Therefore it actually isn't a shortcoming of Titanium Backup itself, but the result of some stupid app handling and killing behaviors that may be active at your device.
Also other apps that should permanently be kept running in background may be impacted by this behavior (being killed for the same reason) like Tasker, Sync-to-cloud apps, etc.
Especially at OnePlus devices running Oreo, following implemented crazy 'optimization' behaviors are playing a role here:
After a user has set Battery optimisation OFF for a specific app, it may automatically be set ON again after a reboot or after the app was updated
Background services may be killed EVEN when for the related app the Battery optimisation was set OFF
The 'Autostart' attribute may be ignored, so apps may be NOT automatically started in background after rebooting your device
SOLUTION
1. Make sure the 'Advanced optimisation' options are disabled
Go to Settings > Battery > Battery optimisation
Click the 3 dots in the upper-right corner and select 'Advanced optimisation'
Verify that the options 'Advanced optimisation' and 'Sleep standby optimisation' are both disabled
2. Set Battery optimisation OFF for any app that should continue to run in background
Go to Settings > Battery > Battery optimisation
Select the app that should never be killed, so in this example: 'Titanium Backup'
Select 'Don't optimize' and click DONE
Nb.
Above is not needed for the 2nd entry 'Titanium Backup PRO', which is just related to your PRO key payment and not the running Titanium Backup process itself.​
However, disabling Battery optimization for an app is NOT enough for preventing that it could be killed when running in background at OnePlus devices!
This not only because the 'Don't optimize' setting may automatically be reverted to 'Optimize' after a reboot or after an update of the app, but EVEN when Battery optimisation is actually disabled it's nevertheless still candidate for being killed at OnePlus devices running Oreo! Therefore also next action is required in addition.
3. Lock the app in your 'Recent Apps' list
Open and then close Titanium Backup (or just touch the Home button at your device after opening the app)
Touch the 'Recent Apps' button at your device
This shows your recent apps, where Titanium Backup will now be included (as last / most recent entry)
Toggle the 'Lock' icon in the upper right corner of that Titanium Backup entry, to switch it to a closed lock icon symbol
(see attached screenshot)
This last action not only just prevents that the app could be removed from your 'Recent Apps' list, but it ALSO prevents the issues as described above, so:
The app will not be killed anymore when running in background
The 'Battery optimisation' setting for that app will not be reverted anymore to 'Optimize' after a reboot or after an update of the app
When done, Titanium Backup schedules should now run as defined. Also, its completion messages shouldn't disappear from your notification entries anymore, but kept until you remove them.
OTHER APPS
Because it's not just a specific Titanium Backup issue but the result of the stupid behavior as implemented at OnePlus devices running Oreo, it's highly recommended to repeat the steps above for any app that should never be killed when running in background (eg. Tasker, Sync-to-cloud apps, Alarm/Alert apps, etc.). Also apps that are making use of scheduled actions, or should awake at incoming messages, chats, mails, alarms, or Security/Anti-virus apps etc. could be candidate of not being able to react properly because they were killed when running in background and/or not started at boot. When such apps doesn't always correctly react/awake at your device, just perform same actions as described above to prevent them to be killed. When an app still doesn't work because it wasn't auto-started at boot, you could use Tasker to create a Tasker-profile that executes a Tasker-task to launch such apps at boot. Start-at-boot via Tasker appears to be not required for Titanium Backup, but for some other apps this was my only option to ensure that they were auto-started after a reboot of my device.
Nb.
Some apps have options included in their internal settings like 'Keep active in background', 'Run in Foreground' or 'Turn off battery optimisation'. Even when these types of internal app settings are selected, they could still be killed at some device brands (eg. OnePlus) when the actions as described above aren't implemented in addition for such apps.
OnePlus: Never settle, but also never be so stubborn...

Thanks
Much appreciated for the fix.
Never thought about locking the app, great idea ?

Just stumbled over this post through a link. Many thanks for the info; in my case it's not only TB that's effected but also several other apps like OruxMaps and Automagic.
For completeness I post some screenshots from OnePlus 6 / OOS 9.0.4 (Pie) showing the changed recent apps screens and dialogs (in German, but I guess you'll get the picture)

paarnoutse said:
Titanium Backup schedules not executed....
OnePlus: Never settle, but also never be so stubborn...
Click to expand...
Click to collapse
i was wondering why titanium is not executed in months.. and killed shortly even when i run it manually.
settings were great:
- no battery optimization
- no data optimization
- tons of free memory on RAM boasting 1+ (funny isn't it)
- recent app management=normal clear
- standby check=exempted
- keep activities
- deep optimization turned off
- sleep standby optimization turned off
and still it didn't help until i LOCKed the app. this is why 1+ and xiaomis achieve better battery scores than samsung

doggydog2 said:
...this is why 1+ and xiaomis achieve better battery scores than samsung
Click to expand...
Click to collapse
(Spoiler: heavy OT post)
...which is what I really love about my 1+: 3 - 4 days between charging aren't rare here.
For the very few apps that are having probs (like track recording) with heavy battery optimization I wrote myself a script (am using automagic, but this should be also possible with Tasker etc) to disable deep opt. then start my critical app. Works great for me, but as always: ymmv

I can't find the setting to lock an app in the recent list in Android 10. Anyone know how to do it?

James_Oakley said:
I can't find the setting to lock an app in the recent list in Android 10. Anyone know how to do it?
Click to expand...
Click to collapse
Each tile you see in the recents screen should show the app title and the usual three dots to open a pop-up menu. There you can lock the app, show app details etc

lm089 said:
Each tile you see in the recents screen should show the app title and the usual three dots to open a pop-up menu. There you can lock the app, show app details etc
Click to expand...
Click to collapse
Thanks for taking the time to reply. Appreciate it.
Still not seeing it.
Where do I click?

James_Oakley said:
Thanks for taking the time to reply. Appreciate it.
Still not seeing it.
Where do I click?
Click to expand...
Click to collapse
Your screenshot shows the app settings. You need to bring up the "recents" screen instead. If you're using the standard navigation bar that is the square button at the right end of the nav bar (screenshot #1, blue mark).
Then you flip through your recently opened apps until you find the one you're looking for. From then on it's as I described before: tap the 3 dots (screenshot #1, red mark). in the pop up menu select the "lock" entry (screenshot #2, green mark)
=== UPDATE: added some screenshots ===

lm089 said:
Your screenshot shows the app settings. You need to bring up the "recents" screen instead. If you're using the standard navigation bar that is the square button at the right end of the nav bar (screenshot #1, blue mark).
Then you flip through your recently opened apps until you find the one you're looking for. From then on it's as I described before: tap the 3 dots (screenshot #1, red mark). in the pop up menu select the "lock" entry (screenshot #2, green mark)
=== UPDATE: added some screenshots ===
Click to expand...
Click to collapse
Thanks - got it. When I read about "recents" in this thread earlier, I assumed it was when you go to Settings > Apps and you're first shown a list of recent apps. I've now got what everyone is talking about, thanks to your patient explaining. I'm sure this will help others too. On my phone, there's no nav bar it's all done with gestures, so you swipe up from the bottom of the screen - then lock Titanium in place. Bingo, and thank you.

Related

Some basic noobie Galaxy S questions

First up, hello to everyone.
I'm a new convert to Android having picked up a Galaxy S a couple of weeks ago, and I've got a couple of (what I'm sure are) basic questions about how best to work it:
First up, how do I go about creating folders on my SD Card. I'm assuming that's the best way to organise things like icons, themes, wallpapers etc.
Is it possible to edit the icons on the dock at the bottom of the screen? Can I put different Apps down there? Can I change the icons that those apps use?
I'm having issues with Widgets - do I need to restart the phone each time I install an app with a widget? There are some apps which allow me to use a widget straight away, but then there are some (like the BBC news feed) which just doesn't show up in my widget list
Can anyone reccomend a good link or article on how to root the Galaxy S? I'd like to it be as simplified as possible please.
Thanks loads in advance for both your help and your time.
Cheers
1)while browsing your sd card, press menu button and it will you the option to create a folder
2)click on applications button while on home screen to change to applications view, then click menu (left button) and edit, then you can just drag the icons in and out of the dock
3)not sure, widgets that i tried all ran after installing them without rebooting the phone
4)I suggest you check out the Galaxy S I9000 Android Development subforum right here on xda, there are some great guides there.
1) I just do it when plugged into my PC via USB in Mass Storage mode. =)
2) As random.si said.
3) I've never needed to restart the phone for widget...are you sure those apps actually have widgets?...Any widgets from the Market or installed apps should always be under 'Android Widgets' as soon as the app is installed, otherwise try using the app first as it may have a config or something.
4) There's a stickied guide in the Android Development subforum here! It's dead easy, so no worries there. Just follow the instructions to the letter, but that's not hard for rooting the Galaxy S.
Hi there. Could you just tell me how to close running application? There is 6 application when i open my task manager (middle button for 3 sec) and i cant do anything with them. Is there any button to close application, not minimalize?
Like now i'm installing facebook and setting up my account. Phone seems to hanging. I dont know how to close it?
mika34 said:
Hi there. Could you just tell me how to close running application? There is 6 application when i open my task manager (middle button for 3 sec) and i cant do anything with them. Is there any button to close application, not minimalize?
Like now i'm installing facebook and setting up my account. Phone seems to hanging. I dont know how to close it?
Click to expand...
Click to collapse
Applications open in the background don't use any CPU time and if the RAM they use is needed Android closes them by itself.
Android isn't designed to let the user close applications. If you really have to close them for some specific reason you can use a task killer from the market.
mika34 said:
Hi there. Could you just tell me how to close running application? There is 6 application when i open my task manager (middle button for 3 sec) and i cant do anything with them. Is there any button to close application, not minimalize?
Like now i'm installing facebook and setting up my account. Phone seems to hanging. I dont know how to close it?
Click to expand...
Click to collapse
Actually those 6 applications are NOT actually running(necessarily).They are just the last 6 applications you have used.
saldawop said:
Actually those 6 applications are NOT actually running(necessarily).They are just the last 6 applications you have used.
Click to expand...
Click to collapse
Ok. Thanks very much guys for your help.
One more question.
How to enable vibration to incoming text message? Can`t see any option for that.
You should try out prehome. When you press home key, it will show the active task, and you can switch or kill task there. Press home key the second time will bring you to home. I love it.
Does anybody knows how to set vibration on incoming messages? Can`t find it. strange
mika34 said:
Does anybody knows how to set vibration on incoming messages? Can`t find it. strange
Click to expand...
Click to collapse
Messages > Menu button > settings. It's at the bottom : D
Rawat said:
Messages > Menu button > settings. It's at the bottom : D
Click to expand...
Click to collapse
Big thx for that.
mika34 said:
Big thx for that.
Click to expand...
Click to collapse
If ever in doubt, always try the menu buttons.
Pretty much every app hides its settings and many controls under the menu buttons to stop the screen being cluttered up with buttons.
The menu button is also context-sensitive to whatever you're doing at the time, so you just need to get used to remembering it's there.
As the previous guys said, Android is designed to not have specific 'closing' or exiting of apps. Rather, they'll hide themselves in the background and once the system needs to free up some ram it'll close once you haven't used for a while automatically in preference of those using the most RAM. It will also usually save the state of that app, so if you go to use it again and Android has already closed it, it will still appear where you left off but just take a bit longer to start since it was cleared from the background.
Most apps will fully close however if you exit by using the back button (bottom-right touch button on the phone), basically reversing your way out of the app until you hit the home screens.
Holding the Home button shows the last 6 apps you had open, whether they're still running in the background or not. It's just a quick way to jump between stuff rather than an actual task manager.
In the JM2 firmware Samsung have added a great widget and task manager app. The widget shows the number of apps still running in the background, as well as a colour for if they're draining battery or performance (ie: processing lots in the background). All you need to do is touch the widget and it'll take you straight to a list where you can close any. Very handy!
While it's easy to get obsessed with using one of the task killer apps on the market all the time, I eventually found with my old Hero that it performed just as well if you ignore what it's doing with RAM or apps since it's intelligent enough to prioritise and close appropriate background stuff without your intervention.
The only reason people were recommending task killers for the Galaxy S was because of the random lags / stalls caused by bugs in the firmware, some of which were caused by it not closing stuff or managing itself properly in the background.
My advice: JM2 firmware and just use the Samsung task manager widget as a guide to if for some reason something high-powered like a game was left open and Android didn't clean it up yet.
Phone number format
How can I change the format of the phone number which is displayed when I have an incoming call ? Thanks ?
While writing SMS, contacts displayed twice
Hi to all,
When I write an SMS and want to choose a contact, they all appear twice, even tough in the phonebook they only appear once because I ticked the option of displaying only contacts from the phone and not from the sim card.
Is there a similar option in SMS that I'm missing here?
Thanks in advance,
Itay
Glad to see this thread has taken off a bit.
One more question from me:
random.si said:
1)while browsing your sd card, press menu button and it will you the option to create a folder
Click to expand...
Click to collapse
I'm assuming I need some sort of File Explorer app to be able to do this - can anyone recommend one?
Cheers
Astro file explorer
is there any way to stop sms being converted to multimedia message? if i write a text message consisting of more than 3 messages (i believe 180 characters) it converts it to multimedia, which costs me!!!

Screen Overlay - Draw Over Screen permission greyed out. Cannot toggle.

Now and then my 6P informs me that Screen Overlay has been detected and that if I want to change the rights for this setting, I must disable screen overlay in Settings > Apps. If I tick Open Settings, and tick any random app, the option to allow that the app will draw over other apps has been greyed out. It doesn't matter whether an app already has this permission or not. I cannot toggle it.
I have searched quite some time now but I cannot find the solution. Anyone here with a brilliant idea?
Thanks
Only certain apps have the "Draw over other apps" option available to them (Twitch, Skype, Lux, Twilight, etc.). From Google-ing the issue, it appears that certain functions in Android and some apps won't work when they're being drawn over. Are you using an app like Twilight or Lux that warms your display at night? If so, disabling them temporarily should allow you to change permission settings on apps.
BillyTheRatKing said:
Only certain apps have the "Draw over other apps" option available to them (Twitch, Skype, Lux, Twilight, etc.). From Google-ing the issue, it appears that certain functions in Android and some apps won't work when they're being drawn over. Are you using an app like Twilight or Lux that warms your display at night? If so, disabling them temporarily should allow you to change permission settings on apps.
Click to expand...
Click to collapse
Thanks for your reply. This made me thinking and I realised that I have the ScreenAdjuster app installed. After freezing that with TiBu I was able to perform the action that I wanted. So problem solved (at least I'd like to think so). The only thing that still puzzles me is that the toggle for allowing to draw over another app is greyed out at every app.
JazzMozz said:
Thanks for your reply. This made me thinking and I realised that I have the ScreenAdjuster app installed. After freezing that with TiBu I was able to perform the action that I wanted. So problem solved (at least I'd like to think so). The only thing that still puzzles me is that the toggle for allowing to draw over another app is greyed out at every app.
Click to expand...
Click to collapse
The majority of apps do not have the option available at all. Skype has it so you can view video call while in a different app, Facebook has it for their chat bubble system, and a some others that do similar things. As well as a bunch of Google apps for seemingly no reason.
BillyTheRatKing said:
The majority of apps do not have the option available at all. Skype has it so you can view video call while in a different app, Facebook has it for their chat bubble system, and a some others that do similar things. As well as a bunch of Google apps for seemingly no reason.
Click to expand...
Click to collapse
All clear and problem solved 100%. Thanks again!
BillyTheRatKing said:
Only certain apps have the "Draw over other apps" option available to them (Twitch, Skype, Lux, Twilight, etc.). From Google-ing the issue, it appears that certain functions in Android and some apps won't work when they're being drawn over. Are you using an app like Twilight or Lux that warms your display at night? If so, disabling them temporarily should allow you to change permission settings on apps.
Click to expand...
Click to collapse
I don't have any of those apps but I still get screen overlay problem. Plus draw over other apps is also greyed out Help
Bump
https://www.youtube.com/watch?v=ASM57Sl393g

Letting application run in the background of the operating system in android 7 EMUI 5

How to let the application run in the background of the operating system in android 7 EMUI 5.0, Huawei-Mat 8?
In the previous version, Android 6, the application should be kept in the Protected Apps, but after updating the operating system the Protected Apps disappeared.
Click the square button on home screen, select your app, and click the Lock on its upper-right corner.
Phone manager - Battery - Close apps after screen lock
dante-fu said:
Phone manager - Battery - Close apps after screen lock
Click to expand...
Click to collapse
Thanks, I tried this option before and I kept it for two days as a test, unfortunately it doesn't work.
Maybe this help
Settings, apps, settings, special access, ignore battery optimization
I noticed some apps get crush afte screen lock no matter what u do
I think its a firmware bug
Gesendet von meinem Mate 8
dante-fu said:
Phone manager - Battery - Close apps after screen lock
Click to expand...
Click to collapse
Thank you, I tried, but it will be deactivated after swapping or put it in the bin.
James_Watson said:
Click the square button on home screen, select your app, and click the Lock on its upper-right corner.
Click to expand...
Click to collapse
Thank you, I tried, but it will be deactivated after swapping or put it in the bin.
amin318 said:
Maybe this help
Settings, apps, settings, special access, ignore battery optimization
I noticed some apps get crush afte screen lock no matter what u do
I think its a firmware bug
Gesendet von meinem Mate 8
Click to expand...
Click to collapse
Actually I got this solution also, in the last week, and I kept it for three days. Unfortunately it is not working.
Even I made factory data reset. I reinstalled all my apps again. Again the same result.
almasruri said:
Thanks, I tried this option before and I kept it for two days as a test, unfortunately it doesn't work.
Click to expand...
Click to collapse
It doesn't say it anywhere but you have to restart the phone for each change there to take effect.
dante-fu said:
It doesn't say it anywhere but you have to restart the phone for each change there to take effect.
Click to expand...
Click to collapse
Thank you very much for this advice. I restarted the phone and it is working up to now.
Ooho, the same problem came again after three days.
I'm trying this setting on mysms to get it to work all the time.
Not receiving notifications when you should be? Here's a Huawei oddity that we've found to be irksome with some apps not sending alerts/notifications even when all settings are apparently correct (WhatsApp is our problematic one). It's to do with EMUI's strict power efficiency. If you stop receiving notifications try this (to access Ignore Optimisations): access Apps (method above) > hit the blue settings cog icon to the bottom > select Special Access under the Advanced tab > Unrestricted Data Access. Here apps can be granted always-on data irrelevant of what other settings state. source: www.pocket-lint.com/news/140204-hua...-tricks-take-charge-of-your-mate-9-p9-honor-8

No Gmail Notification When in Sleep Mode

Hi guys,
I have a problem with Gmail notifications, they are not showing until I unlock my phone. I know it has to do with Doze, so I went to the Battery Optimization menu to try turning off optimization but Gmail app is not present in that list.
Is anyone else has problems with notifications? How do I turn off battery optimization for Gmail App on stock OnePlus 5?
averside said:
Hi guys,
I have a problem with Gmail notifications, they are not showing until I unlock my phone. I know it has to do with Doze, so I went to the Battery Optimization menu to try turning off optimization but Gmail app is not present in that list.
Is anyone else has problems with notifications? How do I turn off battery optimization on stock OnePlus 5?
Click to expand...
Click to collapse
Search in settings.
0xTJ said:
Search in settings.
Click to expand...
Click to collapse
Is the Gmail App available for you on the Battery Optimization list?
averside said:
Is the Gmail App available for you on the Battery Optimization list?
Click to expand...
Click to collapse
It isn't visible for me.
I concur, Gmail is not visible on the battery optimization list for me either. However, Inbox appears on the list.
Thanks for the replies.
Yeah, it seems that only apps installed from Google Play appear on Battery Optimization list.
Does anyone have a problem of missed Gmail notifications?
I get this as well both in my 3t and 5
I've disabled Doze in developer options and it seems the issue is solved, at least so far. With Greenify handling app hibernation I am not seeing much of a battery drain (and I have WiFi/LTE constantly on).
I've disabled Doze too and now the issue is gone. I have WiFi/LTE always on and I don't see any side effects for battery life, it is still good. So, that seems to be a solution.
Thanks, everybody!
Hello everyone. Ive been also having no Gmails after my OP5 screen is off after a few minutes. So I also went to battery optimization list to turn Gmail off from dozing. But it wasnt there. So I had to turn off Doze completely to get it to work. I did however figure out a way to keep Doze on and found a way to add Gmail to that list using a 3rd party app shortcut maker. But for me this didnt work. I still did not get Gmails despite it being exempt from the battery optimizations. But if someone wants to know how I was able to add it to that list let me know. Its not hard, and doesnt require root.
Gam3r 4 Life said:
Hello everyone. Ive been also having no Gmails after my OP5 screen is off after a few minutes. So I also went to battery optimization list to turn Gmail off from dozing. But it wasnt there. So I had to turn off Doze completely to get it to work. I did however figure out a way to keep Doze on and found a way to add Gmail to that list using a 3rd party app shortcut maker. But for me this didnt work. I still did not get Gmails despite it being exempt from the battery optimizations. But if someone wants to know how I was able to add it to that list let me know. Its not hard, and doesnt require root.
Click to expand...
Click to collapse
Hi Yes I would interested to know how you did it as I'm experiencing the same issue with BlueMail ? - Thx
cookie1953 said:
Hi Yes I would interested to know how you did it as I'm experiencing the same issue with BlueMail ? - Thx
Click to expand...
Click to collapse
OK. What I did was use an app called QuickShortcutMaker to start to create a shortcut. Then in the search field I just typed "battery" and looked for the "Settings" section and there you should see "battery optimization". Select that, then select test shortcut. It should open the same "Battery optimization" as before, but will show many more apps then it does normally. Then you can go in there and change as many as you want. Let me know if you figure it out. Going by memory here. Hope that helps.
Gam3r 4 Life said:
OK. What I did was use an app called QuickShortcutMaker to start to create a shortcut. Then in the search field I just typed "battery" and looked for the "Settings" section and there you should see "battery optimization". Select that, then select test shortcut. It should open the same "Battery optimization" as before, but will show many more apps then it does normally. Then you can go in there and change as many as you want. Let me know if you figure it out. Going by memory here. Hope that helps.
Click to expand...
Click to collapse
Hi - Yes its canny created the BTO shortcut and turned off optimization for it -- lets see if it works now -- Thx
I have the same problem on OP5. Stock and modified ROMS. Developer options problem?
Just an update. I updated to 4.5.7 and got a Gmail update. Neither fixed it. Ive been in contact with the Oneplus bug hunters and I was told they would look into it. But for now the only way I get Gmails after the screens been off for about an hour is to keep Doze off completely, or wake up the screen. Also just updated to 4.5.8 and doubt anything was fixed as far as this issue goes.
If you have root, uninstall gmail with titanium backup and reinstall true Playstore , after that you probably have it visible in battery optimisation.
gohan040 said:
If you have root, uninstall gmail with titanium backup and reinstall true Playstore , after that you probably have it visible in battery optimisation.
Click to expand...
Click to collapse
I was able to add Gmail to the not battery optimized list by using a shortcut creator that gave me the full list of apps. But this did not fix the issue where Gmails stop coming through after about 45 mins or so with the screen off. So I had to turn Doze all the way off.
I am experiencing same issue but with facebook messenger. Had no problem on 4.5.3 . Decided to update to 4.5.6 and no more notifications during sleep :/
Hi evryone, first post for me on this forum!
You are telling that turn off Doze solved the problem. Ok I want to do that!
I'm french and I don't find any Doze item in the developer menu. The only item which can correspond is "Mode somnolence" but it is already turn off!
Gmail notifications are very important for me. I'm very disappointed, it's a basic feature!!
Just one remark: I have 3 Google accounts, do you believe it can be a problem?
Hello!
And at me on OP5 with notifications from Gmail the same problems. I contacted the developers and provided them with the logs of working with this error. No answer so far. But, promised to understand. All the above solutions are not valid. It remains only to wait and hope.

How to keep app run in background and prevent it from being 'killed' by "Close All"

How to keep app run in background and prevent it from being 'killed' by "Close All"
Hello, just got my S8+, very new with android..
may I know is there any way to prevent 1 particular running app from being close when I tap the "Close All" button at the app switcher? I'm using the stock Touchwiz.. And i wish to keep that app run at all time in the background..
TQVM..
emfung said:
Hello, just got my S8+, very new with android..
may I know is there any way to prevent 1 particular running app from being close when I tap the "Close All" button at the app switcher? I'm using the stock Touchwiz.. And i wish to keep that app run at all time in the background..
TQVM..
Click to expand...
Click to collapse
Just swipe away the apps you want to close manually and leave the desired one there, close all will close all, there's no way to change that.
emfung said:
Hello, just got my S8+, very new with android..
may I know is there any way to prevent 1 particular running app from being close when I tap the "Close All" button at the app switcher? I'm using the stock Touchwiz.. And i wish to keep that app run at all time in the background..
TQVM..
Click to expand...
Click to collapse
You can lock the apps and prevent them from closing. In the recent apps, there is a 3 dot menu in the top right corner. Tap it and you will see the option for locking apps.
Charkatak said:
You can lock the apps and prevent them from closing. In the recent apps, there is a 3 dot menu in the top right corner. Tap it and you will see the option for locking apps.
Click to expand...
Click to collapse
Ha what do you know, didn't know it had that feature, nice one!
I have this same problem. Trying to find a way to lock my Tile App. Turned off my battery saver so system wont close open apps. Tried everything i could think of and that is suggested
on line. Nothing works. Tile cant even help.
How do I do what you suggest?
How do I access the recent apps? Is it through the 3 line button at bottom of sceen where it shows small pages of everything open or somewhere else?
When I look there....the individual pages don't show the 3 dots.
Thank you for any help you can offer!
Cate11 said:
I have this same problem. Trying to find a way to lock my Tile App. Turned off my battery saver so system wont close open apps. Tried everything i could think of and that is suggested
on line. Nothing works. Tile cant even help.
How do I do what you suggest?
How do I access the recent apps? Is it through the 3 line button at bottom of sceen where it shows small pages of everything open or somewhere else?
When I look there....the individual pages don't show the 3 dots.
Thank you for any help you can offer!
Click to expand...
Click to collapse
if youre in android 9.0 do the following
settings->apps->tap on tile app->battery->allow background activity
youdoofus said:
if youre in android 9.0 do the following
settings->apps->tap on tile app->battery->allow background activity
Click to expand...
Click to collapse
Hi,
What you mean "tap on tile app"? I can not find "allow background activity". Phone is galaxy s8, android pie.
Few days back a call recorder apk sent me there and I realize this option is not deleted from android. It just hidden, like stop FB updates.
kingarthas said:
Hi,
What you mean "tap on tile app"? I can not find "allow background activity". Phone is galaxy s8, android pie.
Few days back a call recorder apk sent me there and I realize this option is not deleted from android. It just hidden, like stop FB updates.
Click to expand...
Click to collapse
See the gif I attached
Ok problem resolved.
There is three options to be set:
1) "Sleeping aps" - go to Settings and type in search bar on top "Sleeping aps"
I Add all apk except: AutoBlutooth, Button mapper, Call recorder, Weather widget, Email and messaging apk
2) "Optimize battery usage" - go to Settings and type in search bar on top "Optimize battery usage" Click again on top row "Optimize battery usage", Click on "App not optimized" and change to "All", find apk that make problem by sleeping.
I Disable :AutoBlutooth, Button mapper, Call recorder, ect. I do not add here email and messaging apk, as they never have sleeping issues. Maybe because not have 3day(default sleep setting) not using them in a row.
3) "Allow background activity" - go to Settings==>>Apps==>>Select application you want not to sleep==>>Battery==>>Allow background activity
It will be set to Enable to all apk, that are not added to "Sleeping aps"
Additional step:
"Device admin apps" - If Application is already here, can give Admin status. It will prevent accidental change of "Optimize battery usage" and "Allow background activity"
p.s
This why my messaging apps have Enabled Allow background activity and Optimise battery usage.
Button mapper, Call recorder ect have Enabled Allow background activity and Disabled Optimise battery usage

Resources