capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
180 stars 56 forks source link

Multiple / Single background watchers behaviour #39

Closed kunalfleethawks closed 2 years ago

kunalfleethawks commented 2 years ago

Hello, Thanks for the plug-in. I am using it for my app and is working as expected. I have few questions:

Thanks. Kunal.

diachedelic commented 2 years ago

If you do not explicitly remove a watcher, the system will continue to deliver it location updates, which may cause unnecessary energy usage. Each watcher is independent, any component creating a watcher can ignore the existence of other watchers.

diachedelic commented 2 years ago

I forgot to mention: all watchers will be removed if the app is killed. They will not be re-added when the app is restarted.

kunalfleethawks commented 2 years ago

Thank you for your reply. It helps