OnePlus
To maintain the optimal performance of your app on OnePlus devices, follow these steps to adjust the battery settings. These settings will help ensure that your app can run background tasks without interruption.
Step-by-Step Guide:
Lock the App in Recent Apps
Swipe up to access recent apps.
Tap and hold your app, then select the lock icon. This will prevent the app from being cleared from memory.
Request Ignore Battery Optimization Permission
Ensure your app requests the Ignore Battery Optimization permission.
This permission will help maintain your app's performance by preventing battery-saving features from restricting background activities.
Adjust Battery Optimization Settings
Open Settings.
Go to Battery > More Settings > Optimize Battery Use.
Search for your app and set it to Don’t Optimize.
Allow Background and Foreground Activity
Open Settings.
Go to Battery > More Settings > App Battery Management.
Search for your app and ensure the following options are enabled:
Allow Background Activity
Allow Foreground Activity
(Optional) Disable Sleep Standby Optimization
Open Settings.
Go to Battery > More Settings.
Disable Sleep Standby Optimization to ensure the app remains active even when the device is idle.
Note: These settings can change with new firmware updates, so it’s essential to periodically check and verify them on different OnePlus models.
Last updated
Was this helpful?