How to keep my app service keep running even if app is closed from task manager in MI phone

后端 未结 3 819
-上瘾入骨i
-上瘾入骨i 2020-12-06 02:48

My app has background service which keep on running even if app is killed from the task manager but when I have tested my app on MI(xiaomi) phone it kills my app service whe

3条回答
  •  被撕碎了的回忆
    2020-12-06 03:04

    MIUI has a built-in Security app. In the Security app there is a 'Autostart' section, where the user can configure which app can and which app can't run on startup. Your application is disabled default. You need to enable your app and also enable permission manager from permission section.

提交回复
热议问题