capacitor-community / capacitor-community/background-geolocation

Problem getting geolocation after one hour

Open
#126 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
249
Forks
79
PR merge metrics
No merged PRs in 30d

Description

**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:
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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on Android 14: launch the app, send coordinates to an API, background it, and observe whether updates stop after about an hour. Investigate the plugin's background execution and foreground-notification behavior; done means coordinate updates continue while the app remains in the background.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.