Add CarPlay support to your navigation app using CarPlay.

Posts under CarPlay tag

112 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Screen refresh issue in CarPlay
I am new to CarPlay development. I am working on an app that has four tabs. The first tab has a POI template. I make an API call, once the data is received, I need to refresh the POI template to display the data received. Below is a sample code. Please guide me on this. Right now I am pushing a new template once data is obtained which is not the right behaviour func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) { self.interfaceController = interfaceController let tabs = CPTabBarTemplate(templates: [firstTab(), secondTab(), thirdTab(), fourthTab()]) interfaceController.setRootTemplate(tabs, animated: true, completion: nil) } func firstTab() -> CPTemplate { // Placeholder template while data is loading let placeholderPOI = CPPointOfInterest(location: MKMapItem(placemark: MKPlacemark(coordinate: CLLocationCoordinate2D(latitude: 0.0, longitude: 0.0))), title: "Loading...", subtitle: "", summary: "Data is currently loading", detailTitle: "", detailSubtitle: "", detailSummary: "", pinImage: nil) let placeholderTemplate = CPPointOfInterestTemplate(title: "EV Stations", pointsOfInterest: [placeholderPOI], selectedIndex: 0) // Asynchronously update the template once data is loaded Task { await loadAndUpdateTimeConsumingData(for: placeholderTemplate) } return placeholderTemplate } func loadAndUpdateTimeConsumingData(for template: CPPointOfInterestTemplate) async { do { // Simulate a 1-minute delay try await Task.sleep(nanoseconds: 60 * 1_000_000_000) // Mock data let stations = [Station1(name: "Station 1", city: "City A", address: "123 Lane", coordinates: (latitude: 12.3456, longitude: 76.7890))] let pointsOfInterest = stations.map { station -> CPPointOfInterest in let mapItem = MKMapItem(placemark: MKPlacemark(coordinate: CLLocationCoordinate2D(latitude: station.coordinates.latitude, longitude: station.coordinates.longitude))) return CPPointOfInterest(location: mapItem, title: station.name, subtitle: station.city, summary: station.address, detailTitle: "", detailSubtitle: "", detailSummary: "", pinImage: nil) } // Update the template let poiTemplate = CPPointOfInterestTemplate(title: "EV Stations", pointsOfInterest: pointsOfInterest, selectedIndex: 0) await MainActor.run { self.interfaceController?.pushTemplate(poiTemplate, animated: true, completion: nil) } } catch { } }
1
0
107
4d
How to Get the Selected Tab in CPTabBarTemplate When Clicking a Tab in CarPlay?
Hi everyone, I'm developing a CarPlay application and using a CPTabBarTemplate to display multiple tabs. I want to determine which tab is selected when the user clicks on a tab, specifically when switching to the second tab. Here’s the relevant part of my code: class CarPlaySceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate { var interfaceController: CPInterfaceController? var tabBarTemplate: CPTabBarTemplate = CPTabBarTemplate(templates: []) func templateApplicationScene( _ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController ) { self.interfaceController = interfaceController // Create and set the TabBarTemplate let tabBarTemplate = createTabBarTemplate() self.tabBarTemplate = tabBarTemplate interfaceController.setRootTemplate(tabBarTemplate, animated: false) { success, error in if let error = error { print("Error setting TabBarTemplate: \(error.localizedDescription)") } else { print("TabBarTemplate set successfully.") } } } func createTabBarTemplate() -> CPTabBarTemplate { let listItem1 = CPListItem(text: "Item 1", detailText: "Detail 1") let listItem2 = CPListItem(text: "Item 2", detailText: "Detail 2") let listTemplate = CPListTemplate( title: "List", sections: [CPListSection(items: [listItem1, listItem2])] ) let gridButton1 = CPGridButton( titleVariants: ["Grid 1"], image: UIImage(systemName: "star.fill")! ) let gridButton2 = CPGridButton( titleVariants: ["Grid 2"], image: UIImage(systemName: "star")! ) let gridTemplate = CPGridTemplate( title: "Grid", gridButtons: [gridButton1, gridButton2] ) return CPTabBarTemplate(templates: [listTemplate, gridTemplate]) } }
1
0
125
1w
Apple CarPlay not working in Range Rover velar
After buying iPhone 16 pro max I’ve had glitches with many things, including carplay, eventually it stopped working altogether. Now it says charging but wont connect to carplay. Ive downloaded the new 18.1.1 reset my velar to factory infotainment, bought new cables, restarted the car, forget car etc. Nothing helps- this se ems to be a theme- including keyboard glitches? I NEED CarPlay as I travel often!! Please fix this- or give me some ideas on how I can!
0
0
127
2w
18.1.1 broke car play
Just got a new 16 Pro and set it up Monday 11/20. It was on 18.1 and everything worked fine. I accidentally updated to 18.1.1 (didn't turn off auto update) 12/2 and now Carplay doesn't work. I have to use a cord in my car for carplay. I have tried all the suggestions listed online and nothing works. I tried to erase my iPhone to go back to 18.1 but in the set up process it showed updated to 18.1.1 with no option to refuse. Incredibly frustrating and so many others have this issue! How was this not caught during beta testing???? This post was rejected from the apple forum and they sent an email saying it contained beta information. 18.1.1 shouldn't be considered beta and if it is then why was it pushed out to my phone? I didn't want a beta testing!
0
0
188
2w
IOS 18.1.1 CarPlay
After upgrading to IOS 18.1.1 CarPlay became terrible. During music playback via USB cable the subwoofer stopped working. Bass is not heard. Sound became very poor. It is impossible to exit CarPlay by pressing the button on the multimedia. if I Disconnect the cable from the phone - the multimedia (radio) works fine again and the subwoofer works normally. CarPlay blocks pressing the keys on the multimedia system. Also it is not possible to update the multimedia, because multimedia menu is inaccessible. When I connect the phone via Bluetooth the timer on the multimedia screen immediately starts, as if I am talking on the phone to somebody. Sound quality via Bluetooth is even worse than via USB. Listening to music (the main function) has become impossible. Please fix this problem. Thank you very much!
3
2
671
3w
iOS 18 CarPlay - all apps freeze when selected
Ever since updating to iOS18, CarPlay has been buggy for me. One of the constant issues is that after it connects, when I select an app (eg google maps or Spotify), the entire app will freeze. This happens regardless of the app I choose. Nothing on the app will be responsive unless I use the physical car controls to back out of the app. Once I’m on the main view of carplay (where it shows all the apps or where it shows the maps/audio mixes screen) then carplay becomes responsive again. But since I can’t use any of the apps as soon as I select one, I have to reboot my phone to resolve the issue. However, the issue will just happen again ok a subsequent attempt to connect. Some times it will work ok, probably happens again every 2-3 times I connect. This never happened prior to iOS18. Any suggestions?
0
0
161
4w
USB Vendor-specific request for Carplay
I'm tryng to develop a software that can connect an iPhone to a HMI Box in order to use CarPlay and test an app for CarPlay. Since the starting point is to ask the device, i.e. the iPhone, if it supports CarPlay, I have to write a USB Vendor-Specific Request that the accessory send to know for this capability. I would like to know what are the specific parameters to include in the control transfer request from accessory to device, especially: bRequest, wValue, wIndex. I've studied the whole Accessory Interface Specification Carplay Addendum, but i couldn't find anything. Thanks in advance for your support.
1
0
154
Nov ’24
Issue with handoff between Siri intent, iOS app & CarPlay extension
We are experiencing an infrequent issue with the handoff between our Siri intent, our iOS app, and our CarPlay extension. Siri correctly understands the request, and the handler(for intent: INIntent) method is called. In the final step, we respond using: INStartCallIntentResponse(code: .continueInApp, userActivity: userActivity) with an instance of NSUserActivity initialized as: NSUserActivity(activityType: "our.unique.StartCallIntent") This "our.unique.StartCallIntent" type is included in the app’s NSUserActivityTypes attribute within the Info.plist. The callback is handled in the main view of the app through: view.onContinueUserActivity("our.unique.StartCallIntent", perform: handleSiriIntent) Additionally, we handle the callback in the CarPlay extension using: func scene(_: UIScene, continue userActivity: NSUserActivity) This is necessary because when Siri is invoked while CarPlay is active, the CarPlay extension should receive the callback. Most of the time, both callbacks are triggered as expected. However, on rare occasions, the handoff fails, and neither onContinueUserActivity nor scene(_: UIScene, continue userActivity:) receives a callback from the Siri intent. Is this a known issue? If so, are there any guidelines or best practices for ensuring that our Siri intent handoff consistently triggers the callbacks?
1
0
121
Nov ’24
CarPlay Problems
I am really hoping somebody can help. I in the process of having our app relaunched with CarPlay and a few other features. However, after nearly 4 weeks I've still not had confirmation of Carplay being accepted. I've submitted several times without any response. When I've contacted Apple Support I simply get a generic reply (see below) Hello Gareth, CarPlay apps are editorially selected, you will be contacted if your app is selected to proceed. If you have already submitted your request to have your app support CarPlay, there is no actions needed. Estimates and status updates are not available. Please let us know if you have any questions or need further assistance.
1
0
151
Nov ’24
CARPLAY IPH15PMX DOES NOT CONNECT to MERCEDES GLC
I m unable to connect CarPlay to Mercedes GLC 2024 with Apple 15PMX. Made all recommendations by Apple, renew the car's sw too. It didn't work despite I tried many times. Funny that my iPhone 11 connects flawlessly both with cord or wireless. However my iPhone 15PMX does connect to any other cars too either with cable or wireless. Is it a bug or a really inability?
1
0
228
Nov ’24
IOS18.1 CarPlay won’t respond (Acura MDX)
Hi there; Apple CarPlay has some issues after updating IOS18. Initially when updated to 18.01 Carplay Maps stopped responding, cannot Mute or unmute voice, cursor doesn’t allow, cannot navigate. After updating it to 18.1 maps still continue to behave unresponsive. 18.1 has also affected other application response. This is dangerous given CarPlay stops responding during driving. I am driving an Acura MDX.
1
0
202
Nov ’24
Carplay GPS issues
I have a 2010 F-150 with an Alpine iLX-F509 receiver using CarPlay. Intermittently, and currently, the GPS shows me traveling in the opposite direction that I'm heading which makes the directions completely useless. Happens regardless of wired or wireless connection. Once I unplug from the USB or disconnect from Bluetooth, the map and directions in my iPhone 13 work normally. When plugging back in, even if I've removed the car from CarPlay and reinstall it, the problem comes back. This seems to be a problem with communication between my phone and my truck GPS. Is this a software problem with CarPlay or with the Alpine system? The firmware on the Alpine is current. Could this possibly be a problem with compatibility or my GPS antenna? I do not seem to be having the same issue with my wife's 2020 CR-V. All other features of CarPlay seem to be working fine. It's just the map and the GPS. Doesn't matter which map I use either (Apple, Google).
3
0
279
Nov ’24
iPhone 11 Pro Max ios 18.1 Carplay no longer works.
Hello, I have a 2024 Chevrolet Silverado LTZ with the Bose system. Ever since I updated to ios 18.1 on my iPhone 11 Pro Max Carplay no longer works. The truck will connect no problem to the phone but the Carplay will not start. I have tried restarting the phone and every other trick. The option for apple car play has totally disappeared from the bluetooth menu (when opening the "i" menu). Please help or release an update to help. Thank you.
1
1
251
Nov ’24
Apply Carplay Issues 18.1 - Phone Calls Not Working Properly
I have a 2020 Toyota Camry XSE. Ever since the iOS 18 and 18.1 updates while connected to my car via the USB cable to CarPlay when receiving or making calls the calls are lagging. A little bit of background is I have the new iPhone 16 Pro, the phone is completely up to date and my car has all the latest updates available as well so everything is up to date. I also bought a new USB cord to make sure it was not a cord issue. When I connect to my car through the cable and go to car play, everything works except for when I make or receive a call. When making or receiving a call upon answering or starting the call the moment the person picks up the system delays both voices on the call. What happens is the "time on phone display" that shows during the call, the time does not move like the call is frozen on the screen. Because of that the call is lagged when I speak or they speak and you are unable to have a normal conversation because of this. If I put the phone on speaker while still connected all of a sudden the call time unfreezes on the screen and starts counting again but the moment it take it off speaker the time freezes again and the call starts lagging again. I have NEVER had an issue until the iOS 18 updates. Please provide any feedback or suggestions, or if this is a known issue and it is currently being worked on. Like I said everything else works except for making/receiving calls that is when the issues start and the CarPlay screen freezes and starts the issues.
8
6
678
Nov ’24
CarPlay won't use cellular data
Hello, two months ago, I got a 2024 Volkswagen ID.4. At first, there was a free trial of a hotspot through Verizon. It was fine, but I'd rather use my phone's cellular data. Not long after that, I installed the iOS 18.1 beta. That's when I noticed that my phone was offline when connected to CarPlay. I have my maps downloaded, and much of my music and podcasts are configured to download locally to my phone, so I'm not sure exactly when it began. I've exhausted the settings I can think of on my phone and my car's infotainment settings. I've tried: Resetting Network settings on my phone Confirming that Wifi Assist is enabled Re-pairing my phone with my car Turning off my car's Wifi Hotspot setting turns turns off wireless CarPlay. When I try to re-connect to CarPlay, I get a notification that it must be on to connect wirelessly. Turning cellular data off and on None have helped yet. Any ideas?
1
0
285
Nov ’24
Using Apps (like Messages, Voicemail, Slack) on iPhone while using CarPlay.
I am frequently a passenger in the car but we use my phone for CarPlay. Before the latest update, I could still use my phone to send messages, review transcript of voicemail messages and read/send message on Slack while being connected to CarPlay. However, now am unable to do so. The entire car has to listen to my text message exchange or my work slack messages. I have gone through just about every setting/function in my phone trying to figure out how to get functionality back in my iPhone while being connected to CarPlay but I can't find anything that has worked. I have tried removing my car from CarPlay and reconnecting it but that did not work. Any advice would be greatly appreciated.
1
0
250
Nov ’24