Hi,
I'm working on a trip detection and recording app that relies on CLLiveLocationUpdates for the location tracking.
We've observed a recurring issue where trip recording eventually stops working if the app is not opened for an extended period of time (approximately 2–3 weeks).
What we observe
The app continues to be installed on the device.
The user does not manually open the app during this period.
Eventually, trip detection and recording stop.
Location diagnostics indicate:
Service Session Required
At this point, CLLiveLocationUpdates no longer appears to deliver location events.
Recovery attempts
We've tried several ways to recover without launching the app:
Turning Location Services off/on
Rebooting the device
Changing location permissions
None of these restore location updates.
The only reliable recovery method we've found is:
Open the app manually.
Leave it running for some time.
Kill the app again.
After doing this, location tracking resumes and works normally for 4-5 days before eventually failing again with the same "Service Session Required" diagnostic.
Questions
Why would a valid location setup eventually transition into a "Service Session Required" state after the app has not been launched for several weeks?
Are there any documented conditions under which an existing CLServiceSession expires, becomes invalid, or requires recreation?
Is there a recommended way to recover from this state programmatically without requiring the user to manually launch the app?
Is this expected behavior or a potential issue with CLLiveLocationUpdates / CLServiceSession?
Additional details
iOS version: 26
App uses: CLLiveLocationUpdates, Beacon Ranging & Beacon Monitoring, SLC updates, Motion Activity Updates
Background location enabled: Yes
Authorization type: Always
Device models tested: iPhone 14 Pro Max
Service session creation code:
private var serviceSession: CLServiceSession?
serviceSession = CLServiceSession(
authorization: .always,
fullAccuracyPurposeKey: "Trip"
)
Has anyone else encountered a similar issue after long periods where the app is not launched?
Thanks.
0
0
5