capacitor-community / capacitor-community/background-geolocation

Support ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS for Reliable Location Tracking

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

Description

**Is your feature request related to a problem? Please describe.**
On Android devices, battery optimization settings can interrupt or restrict background location tracking. This leads to inconsistent behavior when accurate and continuous location updates are required.

**Describe the solution you'd like**
We request the addition of support for the ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS intent in the Capacitor background geolocation plugin. This would enable developers to prompt users to exempt the app from battery optimizations.

**Describe alternatives you've considered**
There are no reliable workarounds to bypass Android’s battery optimization restrictions without user intervention.

**Additional context**
Adding this support will allow developers to ensure consistent and uninterrupted background location tracking on Android devices.

Contributor guide

Open the contributing guide

Research direction

No files or tests are identified in the issue. Start by locating the Android implementation and its public plugin entry points, then review how ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS would be invoked. Done means developers can prompt users to exempt the app from battery optimization for background location tracking.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, operating-systems
Issue type
Feature
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.