We're moving from legacy CLLocationManager region monitoring to CLMonitor. Legacy works reliably for us in the background and while locked. To compare, we run both side by side on the same device (iOS 27.2.1) with the same regions.
Setup
CircularGeographicCondition (>= 100 m, under 20 conditions), CLServiceSession(authorization: .always) retaken at every launch, one task always awaiting monitor.events.
Problem
iOS relaunches the app in the background for an entry while the phone is locked. CLMonitor.h says to wait for UIApplicationProtectedDataDidBecomeAvailable before creating a CLMonitor, so we wait. The app is suspended before unlock, the monitor is never created, and both that entry and the later exit are lost. Legacy catches both.
But the same header says Core Location stops monitoring a condition if an event is pending and no CLMonitor is configured to receive it. And Apple's own sample creates the monitor at launch with no protected-data check.
Has anyone shipped CLMonitor geofencing that works on a locked phone? Do you create the monitor immediately on a background relaunch (after first unlock since boot)? Ever seen persistenceUnavailable when you do?
Also asked on the Apple Developer Forums: https://developer.apple.com/forums/thread/861070