Xiaomi

To ensure your app functions smoothly on Xiaomi devices, follow these steps to configure the appropriate settings. This will help your app run background tasks without unnecessary interruptions.

Step-by-Step Guide:

  1. Lock the App in Recent Apps

    • Swipe up to access Recent Apps.

    • Long press on your app and click on the lock icon. This will prevent the app from being cleared from memory.

  2. Enable Background Autostart

    • Open Settings.

    • Use the search bar to find Background Autostart.

    • Enable Autostart for your app to allow it to run background tasks automatically.

  3. Request Ignore Battery Optimization Permission

    • Ensure your app requests the Ignore Battery Optimization permission.

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

Last updated

Was this helpful?