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

[Question] Is the notification on android always shown, or only while the task is run? #25

Closed
jesperbjerke opened this issue May 28, 2021 · 4 comments

Comments

@jesperbjerke
Copy link

I don't need very accurate location, and only need to update it like once in a while from the background. What I can't figure out is if the notification for android is only shown the short duration while the location is updated, or all the time as long as the service is active?

@diachedelic
Copy link
Collaborator

The notification is shown if at least one watcher exists, and the app is not in the foreground. Showing the notification makes it possible to receive foreground location updates even while the app is in the background. Confusing, this is not the same as "real" background location updates on Android, which are only provided a few times an hour. You may want to look into that, see https://developer.android.com/training/location/background.

@jesperbjerke
Copy link
Author

Okay, thanks for the info! Any plans on implementing an option for only listening on that kind of background location for this plugin?

@diachedelic
Copy link
Collaborator

If it was possible to implement consistently across Android and iOS, I would consider it. I do not have the time to implement such a feature myself, however.

@diachedelic
Copy link
Collaborator

See #19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants