Add CarPlay support to your navigation app using CarPlay.

Posts under CarPlay tag

91 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

CarPlay tab bar issues
Adding CPTabBarTemplate to my Root Template seems to break CPListTemplate, it ends up highlighting the second indexed value. I'm unable to figure out what's causing this issue. Removing the tab bar does fix the issue but I need to use tabs. Any help would be greatly appreciated! func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) { self.interfaceController = interfaceController let listTemplate = CPListTemplate(title: "List", sections: []) listTemplate.tabImage = UIImage(systemName: "person.crop.rectangle.stack.fill") let settingsTemplate = CPListTemplate(title: "Settings", sections: []) settingsTemplate.tabImage = UIImage(systemName: "gear") let tabBarTemplate = CPTabBarTemplate(templates: [listTemplate, settingsTemplate]) interfaceController.setRootTemplate(tabBarTemplate, animated: true, completion: nil) }
4
0
754
Nov ’23
CarPlay - Get CPSessionConfiguration on app launch
Greetings, I would like to know if the CPSessionConfiguration limitedUserInterfaces on app launch. Currently I'm able to read that value when the toggle the limit ui option on the CarPlay simulator. But, if i have it on, and try to read sessionConfiguration?.limitedUserInterfaces it doesn't show me the correct value. I'm using the delegate, as per the documents, and its working just fine when I have the app open and toggle the UI, the only issue is if the UI toggle is on, and i launch the app im not able to get the correct value. Would appreciate any input. Thank you! code: func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) { self.interfaceController = interfaceController self.scene = templateApplicationScene self.sessionConfiguration = CPSessionConfiguration(delegate: self) print(sessionConfiguration?.limitedUserInterfaces == .keyboard) // prints false when ui toggle is on
0
0
373
Nov ’23
A CarPlay template using Siri to let the user choose between several actions?
I'm developing a CarPlay interface to a messaging application but couldn't find how the root CPTemplate, a grid template with button in my case, could activate SiriKit to let the user choose between several actions like we could see in WhatsApp running on CarPlay: There is CPVoiceControlTemplate that seems to do the job but it is only allowed for navigation app category and not messaging and VoIP. Actually my app could activate Siri to compose a message to a selected contact represented by a CPMessageListItem in a CPListTemplate but I couldn't find how to code a CPGridTemplate that activate Siri...
1
0
483
Nov ’23
CarPlay support for SwiftUI app
I'm having troubles adding CarPlay support to my SwiftUI app. I have added the proper entitlements, scene configurations, and template delegate for CarPlay. It's unfortunately not showing up in the CarPlay simulator on Xcode 15. Am I missing something simple? CarPlay Scene Delegate class CarPlaySceneDelegate: NSObject, CPTemplateApplicationSceneDelegate {} Info.plist <key>UISceneConfigurations</key> <dict> <key>CPTemplateApplicationSceneSessionRoleApplication</key> <array> <dict> <key>UISceneClassName</key> <string>CPTemplateApplicationScene</string> <key>UISceneConfigurationName</key> <string>CarPlay</string> <key>UISceneDelegateClassName</key> <string>$(PRODUCT_MODULE_NAME).CarPlaySceneDelegate</string> </dict> </array> </dict> Entitlements <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.developer.carplay-audio</key> <true/> </dict> </plist>
1
0
604
Nov ’23
CarPlay Simulator for Xcode 13.4 not working
Hi, I installed a few versions of Additional Tools for Xcode. I was interested the most in the CarPlay Simulator. I installed the Tools for Xcode 15 - they do not work because of my version of macOS (11.7.4). So I went with the earliest and the latest version of those tools for Xcode 14. They didn't work because I have an Intel machine. I tried the earliest ones for Xcode 13 - they didn't work but I assumed that it could be something to do with the Beta version of the CarPlay Sim (labeled as Beta). I installed the latest version for Xcode 13, labeled as for Xcode 13.4. I tried 3 different devices. iPhone 11 running iOS 17.0.2, iPhone 6s running a version of iOS 15 and an iPhone 13 running some version of iOS 16. All 3 of them connect normally to a CarPlay equipped infotainment system (Discover Media, MIB 3 in a 2021 Volkswagen Caddy). The phones connect to the car both wired and wireless flawlessly, but I cannot connect them to the carplay sim. None devices run any non-finished, unreleased app. The CarPlay Sim recognizes all 3, but in the devices tab the dot is red. I tried turning off personal hotspot, clicking the device name in the devices tab, multiple lightning cables and multiple versions of the CarPlay Simulator. Nothing will work, all 3 phones show "Accesory Not Supported - Your phone does not support this accesory". All cables are MFI certified. All of them are USB-A because my computer is pre-USB-C era. What can possibly be wrong, what can I do?
0
1
470
Nov ’23
CarPlay: dashboardInstructionVariants does not work.
We are creating an app for turn-by-turn navigation in CarPlay. I would like to change the information displayed during navigation between Dashboard and others. I understand from Apple's documentation that this can be achieved by giving strings for both dashboardInstructionVariants and instructionVariants. However, when I actually try it, only the instructionVariants string is displayed. Is this a bug?
0
0
241
Nov ’23
iOS 17.1 Carplay Issue with Siri Feature
With the latest release of iOS17.1, the "Hey Siri" or "Siri" feature does not work with Apple Car Play. Even with taking multiple mitigation steps to try and alleviate the issue (turning on and off the phone, turning off the phone Wi-Fi and Bluetooth, disconnecting the phone from the vehicle, turning the vehicle on and off, etc.), nothing seems to work. There will need to be an updated release to patch that current bug which worked in iOS 17.
2
0
1.7k
Nov ’23
Unable to launch app from CarPlay
Hi, I have a media app that works fine when it is launched from the phone and the menu buttons work perfectly. However the reverse scenario does not work i.e. if the app is not launched on phone but the App icon shows up on the screen - clicking on the icon does not launch the app. Any ideas what could be going on? Thanks
3
0
772
Oct ’23
iOS 17.1 Beta 2 - Bluetooth audio levels not reaching max - iPhone 15 Pro
On iOS 17.0.2 my bluetooth devices (CarPlay and earbuds) were performing at normal levels with all sound settings at default. In the gym, I like to max out my bluetooth earbuds. However, after updating to iOS 17.1 Beta 2 (21B5056e), my bluetooth earbuds set at max volume sounded medium. My first troubleshooting method was to check the sound settings... all setting (including accessibility) were left at the default inputs. To further troubleshoot, I tried other downloaded albums on my music library/playlists...all noticeably lower at max volume. I was thinking this might be related to my earbuds. However, when driving, I decided to play the same album in my 2021 GMC Sierra via CarPlay... I had to turn up the dash knob audio substantially higher to replicate what was considered loud (or rather "comfortably loud") in my truck. Apple tech supports only recommendation was to do a system restore and roll back to 17.0.2. Has anyone else tested music quality/sound over bluetooth before and after they updated from 17.0.2. to 17.1 Beta 1/2 ?
2
0
1.3k
Oct ’23
HUD Turn-by-turn function by third-party apps
If the user uses CarPlay and the car's HUD supports 2nd video streaming, Apple Maps' directional arrows will already be displayed on the HUD. If I remember correctly, I think this feature has been supported starting from iOS14 or iOS15. CarPlay users, who can see turn-by-turn directions from Apple Maps on the HUD, expect third-party apps to support this feature as well. When I checked the CarPlay Simulator, "Instrument Cluster Video Stream 2" is only used by Apple Maps among navigation apps. So I checked the documents for the developers and the CarPlay App Programming Guide since 2022-06, the functionality is not described. So I'm pretty sure it's being blocked by some kind of Apple CarPlay policy. Are there any plans to make the “Instrument Cluster Video Stream 2” feature available to third-party app developers?
2
0
870
Oct ’23
is there any request for car paly?
Hi, we want to support car play in our product. I checked some documents, the hardware request is USB connector , BT, WIFI and GPS. here is my question: do we need more chips for car play function? what we need to prepare for get Apply license ? our hardware platform is Qualcomm chip set. our software platform is Android. thans
1
0
287
Oct ’23
Apps don't play sound unless you select at least one alert display type
I've found an issue introduced in iOS 17. Apps that have notifications in CarPlay (Message, Whasta, Telegram, etc...) can play sounds without the need of displaying any notification alert. If you turn "Show in CarPlay" to off, which is the default value for all other apps, sound will not play unless you check at least one alert type.
0
0
401
Oct ’23
carplay-audio entitlement missing from provisioning profile
When I download my provisioning profile I can't find the com.apple.developer.carplay-audio entitlement in it. Here's what I did: For our app identifier on Apple Developer Portal in "Additional Capabilities" I enabled "CarPlay Audio App (CarPlay framework)". After that I generated a provisioning profile and downloaded it. In the provisional profile info on Apple Developer Portal I can see "CarPlay Audio App (CarPlay framework)" in "Enabled Capabilities". When I import the downloaded profile in Xcode, I can't see the CarPlay entitlement there. After I added the "com.apple.developer.carplay-audio" entitlement to my .entitlements file, I'm getting the "Provisioning profile ... doesn't include the com.apple.developer.carplay-audio entitlement.". When I'm opening the profile in my text editor, I also can't find "carplay-audio" there. Is there a way to solve this problem?
6
0
3.0k
Oct ’23
Apple CarPlay entitlements
Has anyone had a difficult time trying to get Apple CarPlay entitlements approved for an app that provides navigation? I have tried going through Developer support and all I get is the equivalent of "We will let you know when you are approved". It has been over 4 months now with no approval or even a rejection. Am I missing something? Are there any tricks to getting approval?
1
0
320
Oct ’23
Siri INStartCallIntent works on iOS but not with CarPlay
Hey there, I implemented Siri and CarPlay. The INStartCallIntent works on iOS but not when initiating a voice command via CarPlay. Error from INIntentDeliverer: Unable to find implementation of resolution method for facade slot name (null) From what I see, I implemented all methods declared on INStartCallIntentHandling but none is called. Does someone know whats missing? 2023-08-29 11:34:52.551834+0200 MyApp[64559:4844776] [Intents] -[INIntentDeliverer _resolveIntentParameter:forIntent:intentHandler:updateIntent:withCompletion:]_block_invoke Unable to find implementation of resolution method for facade slot name (null) on intent <INStartCallIntent: 0x282a71830> {
1
0
629
Oct ’23
Cannot interact with CarPlay external display in Xcode
I'm testing out adding CarPlay support to my app and had a lot of trouble getting the CarPlay simulator(the one accessible through I/O->External Displays->CarPlay from the simulator app) to respond to any touches. At first I thought it was a problem with my app, but then I erased all contents and settings, turned on car play, and attempted to even interact with the default view to no avail. Throughout the morning it's worked on and off so something is not right here. Xcode 14.2, iOS 16.2. As you can see from the screenshot there are no other apps installed.
2
0
568
Oct ’23
Xamarin CarPlay InformationTemplate Custom Back Button Handle Problem
Our xamarin forms project supported CarPlay and has a information template. I want to use custom back button on information template but when user click back button, handle section is not calling. Back button create function codes: private CPBarButton GetBackButton() { return new CPBarButton("Back", handler => { try { if (interfaceController != null && interfaceController.Templates != null && interfaceController.Templates.Length > 1) { interfaceController.PopTemplate(true); } } catch { } }); } Visual Studio version: Visual Studio 2022 17.7.3
0
0
348
Oct ’23
Not Receiving iMessage/SMS Notifications in CarPlay
For the past 5+ betas I have been having issues with receiving the notification pop up banner and text tone while in CarPlay, but the badge will show there is a message. Most times if I turn off notifications in settings, do a hard reboot, enable it again, it will work again for a short period. Sometimes for the duration of the phone being plugged into the car, other times stops working on the same trip. I have submitted a feedback to apple a few betas ago (went to add an update to it, but now my feedback app just says Loading on the bottom while displaying the previous feedback - whole other issue there). But it does say Recent Similar Reports: None. So it appears it maybe a localized issue with me. I do run a do not disturb focus, but thats from 10pm - 6am, so that shouldnt affect this issue, but it does seem to mimic a do not disturb focus (no audio, no banner notification). I have even tried enabled do not disturb while driving, then disabling it again, that doesnt seem to work. The only thing that words briefly is turning off notifications, hard rebooting, and turning back on for short bursts of time. Thought maybe its a glitch in my car, as up until yesterday, would work in our fleet vehicles at work, but yesterday while using another fleet vehicle, the issue occured. iPhone 12 pro max, latest dev build (but has been occuring for over a month, just getting worse now). Daily is a 2017 elantra limited, latest infotainment system software. The fleet vehicle I had issues with yesterday was a KIA EV. which is in the hyundai family. So dont really know if its a phone issue, or a car manufacturer issue, but it only started with ios 17 about 3? betas in
2
0
454
Oct ’23