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?


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.

Answered By – RGe

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published