Skip to content

Send battery percentage with GPS data#148

Open
eirmd wants to merge 1 commit intobfabiszewski:masterfrom
eirmd:master
Open

Send battery percentage with GPS data#148
eirmd wants to merge 1 commit intobfabiszewski:masterfrom
eirmd:master

Conversation

@eirmd
Copy link

@eirmd eirmd commented Jan 15, 2026

This PR adds the ability for the Android app to include the device battery percentage with each GPS/location update sent to the server.

  • Adds BatteryUtil.java to read battery percent (0–100)
  • Includes battery value in the position payload
  • No extra permissions are required
  • Backward compatible: works with older server versions (battery ignored) and older apps (battery stored as NULL)

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

Successfully merging this pull request may close these issues.

1 participant