OnePlus
Story
OnePlus and their OxygenOS Android modification is known for maximizing the stock Android experience. This may be true on the UX front but the exact opposite is valid for background process limits.
When releasing their 1+5 and 1+6 phones, OnePlus introduced one of the most severe background limits on the market to date, dwarfing even those performed by Xiaomi or Huawei. Not only did users need to enable extra settings to make their apps work properly, but those settings even got reset with firmware updates. So apps break again and users are required to re-enable those settings on a regular basis.
App locking
Locking the app in the Recent app may avoid the app to be killed in background and the Battery optimisation setting to be reverted.
This is however not 100%. You may have to check system settings every once in a while. See a bug report filed to OnePlus.
-
Start the app you want to protect. Go to Recent apps - swipe up and hold for opening recent apps (Apps switcher).
-
Long press anywhere on the window and tap the Lock button on the upper right corner of the app.
-
The locked app will have the closed padlock icon.
Battery optimization
-
Turn off System Settings > Apps > Gear Icon > Special Access > Battery Optimization.
WARNING: Recently OnePlus phones started reverting this setting randomly for random apps. So if you set it to be not optimized, the next day it may be back to optimized.
To avoid the system to automatically revert the not optimized setting, you must also lock the app into the ‘Recent App’ list, see the solution above or here. -
Turn off System settings > Battery > Battery optimization, switch to ‘All apps’ in top right menu > Your app > Don’t optimize
NOTE: Some of our users indicated that you need to disable Doze mode in Developer options in 1+3 and earlier.
App Auto-Launch
App Auto-Launch (on some OnePlus phones) essentially prevents apps from working in the background. Please disable it for your app.
Enhanced / Advanced optimization
- OnePlus 6 and further:
System settings > Battery > Battery optimization > (three dots) > Advanced optimization.
You’ll see two options there. Both are enabled by default:
-
Deep optimization or Adaptive Battery
This is the main app killer. If you need any apps to run in background, disable it. -
Sleep standby optimization
OnePlus tries to learn when you are usually asleep, and in those times it will then disable the phone’s network connections. This setting will prevent push notifications from being delivered.
- OnePlus below 6:
Turn off System settings > Battery > Battery optimization > (three dots) > Enhanced optimization.
NOTE: This should help with the problem where you lose Bluetooth connection to your smartwatch / fitness tracker (e.g. for sleep tracking).
Recent apps clearing behaviour
Normally when you swipe an app away, it won’t close. Android handles that well on its own. On OnePlus this may however work in a different way. Recent app clear behaviour manager might be set up in a way that swiping the app to close will kill it.
Solution for devs
No known solution on the developer end
Further read
Badge
Copy embed code to clipboard