Closed quewen08 closed 2 years ago
Hi @quewen08 Thank you for opening an issue;
First, I have to say that the Chinese Rom are famous for their strict battery monitoring, so before any investigation please disable the battering monitoring service or add your app to their exceptions;
by the way, Can you still see the notification after one minute?
Hi @mehdok Thank you for your reply!
I really know this ROM is very hate. So I tried to add the app to the battery whitelist, then it worked!
I forked your code and added a little functionality
https://github.com/quewen08/background_locator/commit/fefc19939c8648fb9de1700af5beb0896d380859
@quewen08 Thank you for your contribution;
I have added a little comment on your code, please change that part and submit a PR
;
@mehdok
Thank you comment, it looks nice! I changed that and submit a pr
. Like you see #276
I clone your example code runing in RedMi 5, here is the
flutter doctor
The Android Version is
8.1.0
The MIUI Version is MIUI 109.8.29
Questions:
If only use the
android.location.LocationManager
,it may be addLocationManager.NETWORK_PROVIDER
to help get the location data