A CarPlay app with the carplay-fueling entitlement displays a list of stations. Tapping a station hands off to the Maps app for directions and navigation.
Sometimes the handoff will return unsuccessful from the open call.
The first attempt will succeeed. I immedediately return to my app and select a different station. The second attemp may succeed or it may fail.
If the handoff attempt fails I can switch to the Maps app, return to MyApp, tap the same station row that just failed and the handoff will succeed.
The issue is across multiple iOS versions (18 and 26) and multiple devices.
Looking at the sysdiagnose logs, a successful handoff looks like this:
2026-06-26 15:56:27.762040
lsd: pid 14570 requests to open URL with scheme <private>
2026-06-26 15:56:27.768475
lsd: [FBSSystemService][0xee43] Sending request to open "com.apple.Maps"
2026-06-26 15:56:27.782145
lsd: [FBSSystemService][0xee43] Request successful:
<BSProcessHandle ... Maps:17170; valid: YES>
A failed handoff looks like this:
2026-06-26 17:05:00.162432
lsd: pid 14570 requests to open URL with scheme <private>
2026-06-26 17:05:00.171618
lsd: [FBSSystemService][0x3d16] Sending request to open "com.apple.Maps"
2026-06-26 17:05:00.173776
SpringBoard: Received request to open "com.apple.Maps" with url "maps:<private>"
from lsd:122 on behalf of MyApp:14570.
2026-06-26 17:05:00.174110
SpringBoard: Received untrusted open application request for "com.apple.Maps"
from <FBApplicationProcess ... app<au.com.philk.MyApp>:14570>
2026-06-26 17:05:00.175103
SpringBoard: Open "com.apple.Maps" request from lsd:122 failed with error:
FBSOpenApplicationServiceErrorDomain; code: 1 ("RequestDenied")
Reason:
Application au.com.philk.MyApp is neither visible nor entitled,
so may not perform un-trusted user actions.
Underlying:
FBSOpenApplicationErrorDomain; code: 3 ("Security")
Looking more closely at the logs, the template UI is brought forward:
CarPlay: DBApplicationSceneHostViewController; au.com.philk.MyApp; proxy: com.apple.CarPlayTemplateUIHost
RunningBoard briefly grants MyApp foreground / render assertions:
Foreground Template App FBWorkspace (ForegroundFocal) Set darwin role to: UserInteractiveFocal visibility is yes
However, SpringBoard also records MyApp as background:
2026-06-26 17:04:53.709527 SpringBoard: Application process state changed for au.com.philk.MyApp: taskState: Running; visibility: Background
The denied open at 17:05:00 appears to use SpringBoard's application visibility/trust decision, not the fact that the user is actively interacting with MyApp's CarPlay template UI.
The following is logged:
Application au.com.philk.MyApp is neither visible nor entitled, so may not perform un-trusted user actions.
I have tried two different ways to pass/open the URL, and both will fail, usually after the first attempt.
A plain maps:// URL
Creating a MapItem and using:
MKMapItem.openInMaps(launchOptions:from:completionHandler:)
I wonder if this is the same or similar bug to the one reported here?
https://developer.apple.com/forums/thread/787788?answerId=843556022#843556022
What is the root cause of the random failures?
Any help or pointers will be appreciated.
0
0
30