background_locator icon indicating copy to clipboard operation
background_locator copied to clipboard

can't stop location service when bring service from background

Open tranice opened this issue 3 years ago • 8 comments

Hi, when I take a running service to background by press back button and press notification icon to bring service to foreground , I found can't stop location service even I execute "BackgroundLocator.unRegisterLocationUpdate" serval times.
anyone has same problem? it occurs in android Emulator

tranice avatar Feb 06 '21 03:02 tranice

Hi @tranice

Thank you for opening an issue;

Are you testing the example app? if not please share some code;

mehdok avatar Feb 06 '21 06:02 mehdok

Hi @mehdok I test the example app in Android Emulator - Pixel_2_XL_API_28 and Nokia 7 plus , both occurs. the step is: 1、press start 2、press back button, quit app 3、press notification bar to reenter app 4、press stop , still receive data.

tranice avatar Feb 14 '21 13:02 tranice

Thank you @tranice.

I can reproduce this problem, so it is officially a bug;)

Thanks for reporting, will notif you when it is fixed.

mehdok avatar Feb 14 '21 20:02 mehdok

@mehdok you are welcome, thanks for your effort !

tranice avatar Feb 15 '21 01:02 tranice

hi @mehdok , is this already fixed? thank you so much!

olryts avatar Mar 04 '21 05:03 olryts

@olryts Sadly no, it is not fixed yet;

mehdok avatar Mar 04 '21 05:03 mehdok

Hello i am facing an issue and i need your help. I want to get location once in a every 15 secs. Both IOS and Android. I can make it with interval settings in Android but i couldn't find a way for IOS. Is there a way to do this ?

FLavenNA avatar Mar 05 '21 11:03 FLavenNA

Hi @FLavenNA

It is better if you could open a new issue for your problem.

But short answer, there is no way to force iOS to use the interval to send location updates, iOS will send you updates whenever it receives one.

mehdok avatar Mar 06 '21 06:03 mehdok