Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Apple Maps directions not starting on first launch in CarPlay

In my app, I want to launch Apple Maps and start turn-by-turn navigation when the user taps a button.

I referred to Apple’s documentation and sample projects and implemented the following code:

if let url = URL(string: "maps://?t=m&daddr=(addr)") { self.carplayScene?.open(url, options: nil, completionHandler: nil) }

This works only if Apple Maps has been launched at least once on the iPhone or in the CarPlay environment. If Apple Maps has never been opened before, it launches the app but does not automatically start navigation.

However, once the user has opened Apple Maps at least once — either on the phone or through CarPlay — then navigation starts as expected from that point on.

Is this behavior expected? Or is it a bug?

However, once the user has opened Apple Maps at least once — either on the phone or through CarPlay — then navigation starts as expected from that point on.

Is this behavior expected? Or is it a bug?

I'd consider it a bug. The goal of the system is that the user shouldn't be able to tell the difference between a newly launched app and an app that was woken from suspensions, so any difference between those two cases is, in theory, a bug. That's particularly true in a case like this where the app is specifically being opened with "input".

Please file a bug on this and post the number back here once it's filed.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

the number : FB18140113

Apple Maps directions not starting on first launch in CarPlay
 
 
Q