问题
Xiaomi Redmi Note 3 ,Any Custom service creating using code is disable when you clear application from background, issue not happen in samsung and other phone but happen in similar phones.
回答1:
You need to add your app to the list of "protected apps". On different phones this is in different places, try looking in "settings->Security". You need to explicitly enable your app to run in the background.
来源:https://stackoverflow.com/questions/45419571/xiaomi-redmi-note-3-custom-service-not-working