rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
287 stars 321 forks source link

Background Location is not working properly on Android 11 #275

Open alfaruqrizqi18 opened 2 years ago

alfaruqrizqi18 commented 2 years ago
  1. I open my app then background location running well
  2. When i push back until my app closed (to home smartphone), background location still running
  3. But, when i open my app again, background location turning off
  4. when I try to do Point 2 again, and i open my app again background location turning on

Any solution?

alfaruqrizqi18 commented 2 years ago

Just to give more feedback. In my implementation this works, on Android 11 (with a phone and with an emulator) (Following the Instructions of this package regarding the usage)

I've following the instructions as well and it runs well below Android 11

mehdok commented 2 years ago

Hi @alfaruqrizqi18 @eveetc Thank you for opening an issue;

alfaruqrizqi18 commented 2 years ago

Hi @alfaruqrizqi18 @eveetc Thank you for opening an issue;

* Can you see the location notification all the time on `Android 11`?

* It would be nice if you could try this on a real device;

* Please check if there is any strict buttery monitoring on your device, and exclude your app from them;

Hi, @mehdok Thank you for your response

mehdok commented 2 years ago
  • but sometimes still disappeared

It is strange that after turning off your battery saver you can still see this happening; Please be sure that the battery monitor completely is off; Adding your app to the whitelist might help also; Please share any other information that might help;

alfaruqrizqi18 commented 2 years ago
  • but sometimes still disappeared

It is strange that after turning off your battery saver you can still see this happening; Please be sure that the battery monitor completely is off; Adding your app to the whitelist might help also; Please share any other information that might help;

I use Poco X3 NFC

whitecloud-sas commented 2 years ago
  • but sometimes still disappeared

It is strange that after turning off your battery saver you can still see this happening; Please be sure that the battery monitor completely is off; Adding your app to the whitelist might help also; Please share any other information that might help;

I use Poco X3 NFC

using Poco as well, same issue