Wyn
Wyn

Reputation: 97

Use capacitor/geolocation or capacitor-community/background-location?

I'm writing an Ionic/Vue 6 mobile app that tracks the route a hiker takes. Now I've got to the part where I need GPS information. The GPS plugin needs to continue to work when the user puts their phone in their pocket for maybe hours at a time. The two plugins I'm looking at are: capacitor/geolocation and capacitor-community/background-location, so which one should I use?

Upvotes: 0

Views: 558

Answers (1)

RGe
RGe

Reputation: 1859

In this case you have to choose capacitor-community/background-location because it can track the position in the background which is not possible with capacitor/geolocation.

Upvotes: 2

Related Questions