How to restart Background service getting killed o

2019-02-21 09:25发布

问题:

I am using sticky service for background operations and its working fine in all phones even when app is closed by swiping from stack(then service is restart) but in RedMi Note 3w When app is closed by swiping from stack , service is not restarting .I test Whats App and its working fine on Note 3 so it means WhatsApp is able to manage this so how can we restart Background service getting killed on redmi phone?

Note : please don't give me solution for MIUM 7

回答1:

in MIUI 8 in setting >Permissions>Autostart you can allow your app to Auto Start and Facebook and WhatsApp are already allowed because MIUI 8 by default allowed auto Start for whatsApp and Facebook as they are very popular App brands