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:

  1. Lock the App in Recent Apps

    1. Swipe up to access recent apps.

    2. Tap and hold your app, then select the lock icon. This will prevent the app from being cleared from memory.

  2. Request Ignore Battery Optimization Permission

    1. Ensure your app requests the Ignore Battery Optimization permission.

    2. This permission will help maintain your app's performance by preventing battery-saving features from restricting background activities.

  3. Adjust Battery Optimization Settings

    1. Open Settings.

    2. Go to Battery > More Settings > Optimize Battery Use.

    3. Search for your app and set it to Don’t Optimize.

  4. Allow Background and Foreground Activity

    1. Open Settings.

    2. Go to Battery > More Settings > App Battery Management.

    3. Search for your app and ensure the following options are enabled:

      • Allow Background Activity

      • Allow Foreground Activity

  5. (Optional) Disable Sleep Standby Optimization

    1. Open Settings.

    2. Go to Battery > More Settings.

    3. Disable Sleep Standby Optimization to ensure the app remains active even when the device is idle.

Last updated

Was this helpful?