You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing an app with Ionic 7 and Angular 17. I'm trying to use background geolocation with BackgroundGeolocation (@capacitor-community/background-geolocation) for Android 14 through the plugin watcher, but after a few minutes (2/3), it stops emitting the location.
In the AndroidManifest.xml file, I've added:
And with the Geolocation plugin (@capacitor/geolocation), I'm requesting permissions using Geolocation.requestPermissions().then().catch();. According to the documentation, everything seems correct, but it stops emitting the location after a few seconds.
I've tried different code, but nothing seems to work. This is the closest I've gotten, where I managed to display the notification that it's collecting the location through the watcher.
The text was updated successfully, but these errors were encountered:
So you are using @capacitor/geolocation alongside this plugin? That combo is known to cause at least one issue: #104. Calling addWatcher requests permissions by default, so you don't need @capacitor/geolocation for that. If you need a foreground watcher, omit backgroundMessage when calling addWatcher.
I'm developing an app with Ionic 7 and Angular 17. I'm trying to use background geolocation with BackgroundGeolocation (@capacitor-community/background-geolocation) for Android 14 through the plugin watcher, but after a few minutes (2/3), it stops emitting the location.
In the AndroidManifest.xml file, I've added:
And with the Geolocation plugin (@capacitor/geolocation), I'm requesting permissions using Geolocation.requestPermissions().then().catch();. According to the documentation, everything seems correct, but it stops emitting the location after a few seconds.
I've tried different code, but nothing seems to work. This is the closest I've gotten, where I managed to display the notification that it's collecting the location through the watcher.
The text was updated successfully, but these errors were encountered: