Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem getting geolocation after one hour #126

Open
cdiazp-sacyr opened this issue Oct 14, 2024 · 2 comments
Open

Problem getting geolocation after one hour #126

cdiazp-sacyr opened this issue Oct 14, 2024 · 2 comments

Comments

@cdiazp-sacyr
Copy link

Describe the bug
After resolved the problem of Android stopping the application after five minutes in the background:
#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:

  1. Start app
  2. Send coordenates to an API
  3. We send the application to de background
  4. After an hour, Android stops the calls to the API
  5. 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
@diachedelic
Copy link
Collaborator

Can you reproduce the problem when you run the Example app on your device? https://github.com/capacitor-community/background-geolocation/tree/master/example

@diachedelic
Copy link
Collaborator

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants