G7JJF APRS Client · Manual App home PDF

Chapter 23

Background Operation and Battery

APRS is most useful when it keeps running: beaconing from the car, iGating, and catching messages. The app runs as an Android foreground service for this, shown by a permanent low-priority notification with the connection state.

#What keeps running

All of this runs in the service, so it carries on when the app's screen is closed or swiped away from the recent-apps list.

#Watchdogs and restarts

MechanismBehaviour
Connection watchdogEvery 9 minutes, even in Doze: pings APRS-IS and reconnects if the connection has died.
Background jobEvery 15 minutes when a network is available: restarts the service if Android killed it while you were connected.
Swipe-awayIf you were connected, the service restarts itself a second later.
Reboot / updateIf Auto-connect is on and you were connected, the service starts and connects to APRS-IS after the phone boots or the app is updated.
Exit / DisconnectChoosing Exit or disconnecting turns all of the above off until you connect again.
New in 1.8.2. After a reboot the app now actually reconnects to APRS-IS; before, it only started the service.

#GPS and microphone in the background

Android only lets an app use GPS or the microphone in the background if its background service says it needs them. The app's service does so whenever you have granted the location or microphone permission, so SmartBeaconing, proximity alerts and the audio TNC keep working with the screen off. Android allows this to be set up only while the app is on screen: after a reboot, GPS and the microphone are picked up the first time you open the app, and until then GPS positions may not arrive while the screen is off.

#Battery optimisation

Android and some manufacturers aggressively stop background apps. For dependable operation:

  1. Allow the app to ignore battery optimisation when asked (or Settings → Apps → G7JJF APRS Client → Battery → Unrestricted).
  2. On Samsung, remove it from Sleeping apps and Deep sleeping apps. On Xiaomi, enable Autostart and set No restrictions. On Huawei/Honor, set App launch to manual with all three switches on. On OnePlus/Oppo/Realme, allow background activity. The website dontkillmyapp.com has step-by-step guides for each make.
  3. Leave the app in the recent-apps list rather than swiping it away.

Battery use depends mostly on GPS and the screen. With the screen off, APRS-IS alone uses very little; continuous GPS for SmartBeaconing uses noticeably more, so plug in when mobile.