Background Service is not restarting after killed in oppo, vivo, mi android version 7.1.2

前端 未结 2 764
萌比男神i
萌比男神i 2020-12-03 06:15

I want to run the service in the background even if the app is killed. This functionality is working fine on some devices. But in oppo, mi and Vivo phone it\'s not running i

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 06:46

    1. I had same issue with Oppo, Vivo, Mi and etc phones, after removing from recent applications app was getting killed even services was getting killed

      Solution: I had add autostart permissions like this in my application and it worked.

    2. After resolving this issue my app was getting frozen/killed after sometime running in background due to DOZE mode

    Solution: for this condition this worked and now my app is working in background in any device

提交回复
热议问题