Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if the location service is already running #10

Open
Goolpe opened this issue Sep 23, 2019 · 5 comments
Open

Check if the location service is already running #10

Goolpe opened this issue Sep 23, 2019 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Goolpe
Copy link

Goolpe commented Sep 23, 2019

Every time if I restart the application, a new location service starts and count of the same locations increase.

void _getLocation(){
    BackgroundLocation.startLocationService();
    BackgroundLocation.getLocationUpdates((dynamic position) =>
      print(position));
}
@Almoullim
Copy link
Owner

iOS or Android?

@Goolpe
Copy link
Author

Goolpe commented Sep 24, 2019

iOS or Android?

Didn't try on iOS yet, but Android for sure

@Almoullim Almoullim added the help wanted Extra attention is needed label Oct 20, 2019
@pY4x3g
Copy link

pY4x3g commented Jun 16, 2020

Same problem here on android, if the app is restarted I get the same position twice. My current workaround is

    BackgroundLocation.stopLocationService();
    BackgroundLocation.startLocationService();
    BackgroundLocation.getLocationUpdates((location) { ... });

@espenmn
Copy link

espenmn commented Nov 19, 2021

Does this (also) mean that 'something is running' after the app is closed? (and using battery)

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jul 25, 2023
@MoralCode MoralCode removed the stale label Jul 25, 2023
@Almoullim Almoullim self-assigned this Jul 26, 2023
NullByte08 added a commit to NullByte08/background_location that referenced this issue Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants