Problem getting geolocation after one hour
Describe the bug After resolved the problem of Android stopping the application after five minutes in the background: https://github.com/capacitor-community/background-geolocation/issues/89 Now Android stops the application in the background after approximately one hour. For this reason, we have used foreground plugin to show a notification that makes Android reactivate the app, but it does not work.
To Reproduce Steps to reproduce the behavior:
- Start app
- Send coordenates to an API
- We send the application to de background
- After an hour, Android stops the calls to the API
- If I get the application in foreground, the flow restart again
Expected behavior We need to send coordenates to the API throughout the time
Smartphone (please complete the following information):
- Device: Any Android Device
- OS: Android 14
Can you reproduce the problem when you run the Example app on your device? https://github.com/capacitor-community/background-geolocation/tree/master/example
The Example app does not send anything to an API, but it will show you if location updates pause (or stop being sent to the WebView).