background_locator icon indicating copy to clipboard operation
background_locator copied to clipboard

Background Location is not working properly on Android 11

Open alfaruqrizqi18 opened this issue 3 years ago • 6 comments

  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 avatar Sep 15 '21 06:09 alfaruqrizqi18

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

alfaruqrizqi18 avatar Sep 16 '21 02:09 alfaruqrizqi18

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 battery monitoring on your device, and exclude your app from them;

mehdok avatar Sep 16 '21 06:09 mehdok

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

  • I can see location notification on Android 11, but when service was started I pressed back till Home Smartphone, and I open the app, location notification was dissapeared. And when I try again, it will show again
  • I've tried this on my real device
  • At this point, when I try to turn off my battery saver for my app, it runs well, but sometimes still dissapeared

alfaruqrizqi18 avatar Sep 17 '21 03:09 alfaruqrizqi18

  • 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;

mehdok avatar Sep 17 '21 06:09 mehdok

  • 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

alfaruqrizqi18 avatar Sep 17 '21 08:09 alfaruqrizqi18

  • 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

whitecloud-sas avatar Dec 06 '21 03:12 whitecloud-sas