Background Service is not restarting after killed

2020-01-31 10:54发布

I want to run service in background even if the app is killed. This functionality is working fine on some devices. But in oppo,mi and vivo phone its not running if app is killed. how can i do this for these devices

1条回答
淡お忘
2楼-- · 2020-01-31 11:48
  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

查看更多
登录 后发表回答