Add CarPlay support to your navigation app using CarPlay.

Posts under CarPlay tag

90 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Payment with CarPlay
Assuming that I have an iOS app which is managing the payment method of the user (e.g. credit card), what is preventing me to build a CarPlay app (e.g. EV charging app) with a button that triggers the payment of the charging station? I mean, what are the advantages that will be introduced with iOS 16 that will allow the payment of gas stations from CarPlay?
2
0
1.6k
Sep ’23
Carplay infotainement homemade
HI everyone, my little project is to create an infotainment system based on apple carplay but I don't know what "carplay" really is, if an operating system or an app to be installed on linux, also because I haven't found any information on how implement carplay. At my disposal I have a raspberry pi4 and a 5 inch screen.
1
0
347
Aug ’23
displaying local notification in CarPlay app
I have created a CarPlay app that displays local notifications. The notification displays on iPhone but in CarPlay, the notification never displays. When registering for the notification via requestAuthorization, we are passing .carplay into the options. This results in the "Show in CarPlay" option to show up in the Notification settings for the app. However, even with this option enabled, no notification is ever displayed on the CarPlay screen. The CarPlay app we have created is the automaker type. Does this app type have additional notification restrictions?
4
0
1k
Aug ’23
CPTabBarTemplate has issue for memory management?
I write a empty class for deinit test class MyEmptyModel { deinit { print("MyEmptyModel deinit") } } Every tab in CPTabBarTemplate must be visited at least once, after which deinit is called. so it can cause memory issue if user doesn't visit all tabs. I think it's a bug. here's a code I wrote for test. is there any code wrong? // create first tab list template let firstItem = CPListItem(text: "firstItem", detailText: "hoho") firstItem.handler = { _, completion in let firstInnerItem = CPListItem(text: "firstInnerItem", detailText: "haha") firstInnerItem.handler = { _, completion in print("firstInnerItem!!") completion() } firstInnerItem.userInfo = MyEmptyModel() let firstInnerSection = CPListSection(items: [firstInnerItem]) let firstInnerList = CPListTemplate(title: "First Inner", sections: [firstInnerSection]) firstInnerList.emptyViewTitleVariants = ["First Inner empty"] interfaceController.pushTemplate(firstInnerList, animated: true) { _, _ in completion() } } let firstSection = CPListSection(items: [firstItem]) let firstList = CPListTemplate(title: "First", sections: [firstSection]) // create second tab list template let secondItem = CPListItem(text: "secondItem", detailText: "hoho2") secondItem.handler = { _, completion in let secondInnerItem = CPListItem(text: "secondInnerItem", detailText: "haha2") secondInnerItem.handler = { _, completion in print("secondInnerItem!!") completion() } secondInnerItem.userInfo = MyEmptyModel() let secondInnerSection = CPListSection(items: [secondInnerItem]) let secondInnerList = CPListTemplate(title: "Second Inner", sections: [secondInnerSection]) secondInnerList.emptyViewTitleVariants = ["Second Inner empty"] interfaceController.pushTemplate(secondInnerList, animated: true) { _, _ in completion() } } let secondSection = CPListSection(items: [secondItem]) let secondList = CPListTemplate(title: "Second", sections: [secondSection]) // create third tab list template let thirdItem = CPListItem(text: "thirdItem", detailText: "hoho3") thirdItem.handler = { _, completion in let thrdInnerItem = CPListItem(text: "thirdInnerItem", detailText: "haha3") thrdInnerItem.handler = { _, completion in print("thirdInnerItem!!") completion() } thrdInnerItem.userInfo = MyEmptyModel() let thirdInnerSection = CPListSection(items: [thrdInnerItem]) let thirdInnerList = CPListTemplate(title: "Third Inner", sections: [thirdInnerSection]) thirdInnerList.emptyViewTitleVariants = ["Third Inner empty"] interfaceController.pushTemplate(thirdInnerList, animated: true) { _, _ in completion() } } let thirdSection = CPListSection(items: [thirdItem]) let thirdList = CPListTemplate(title: "Third", sections: [thirdSection]) // create tabbar template and set to root template var tabBarTemplates = [CPTemplate]() tabBarTemplates.append(firstList) tabBarTemplates.append(secondList) tabBarTemplates.append(thirdList) let tabBarTemplate = CPTabBarTemplate(templates: tabBarTemplates) interfaceController.setRootTemplate(tabBarTemplate, animated: false) { _, _ in }
0
0
293
Aug ’23
Apple carplay entitlement file request - no update from Apple
Hi,  I am writing to inquire about the status of our app’s Apple CarPlay Entitlement file request. I submitted the request for the entitlement file on June 19, 2023, and as of now, I have not received any update regarding its processing. Request Submission Date:  June 19, 2023 Case-ID: 3402369 I would greatly appreciate if you could kindly check the status of my entitlement file request and provide an update on this. If there are any additional informations needed from my end to quicken the process, please let me know, and I will promptly provide them. Thanks
0
0
358
Aug ’23
how to show all contents in CPListTemplate?
I test my music app which supports CarPlay. CarPlay limits maximum number of items with CPListTemplate.maximumItemCount. my test case(real iPhone and CarPlay Simulator) CPListTemplate.maximumItemCount is 500. so I can show 500 items in CPListTemplate. however when I test with Apple Music App, (which has a playlist contains over 1000 songs) all songs can be presented. (I can scroll first song to last song.) I guess there's a reload list logic, because the limit count(500 items in list) should be same. but I don't know when should I reload items. because CPListTemplate is not UITableView, so I can't check an item position in list. I checked CPListItem, CPListTemplate and CPInterfaceController in documentation, I can't fine any hint for that. is there any ideas for showing all contents?
1
0
392
Aug ’23
Announce my apps' Notifications in CarPlay
My app uses UNMutableNotificationContent() to play a custom sound, and has a phrase as a message. I just got a vehicle with CarPlay. When my iPhone is connected to CarPlay, when the notification goes off at a time, it shows on the iPhone, but does not make any noise whatsoever. What I'd like to happen, is for CarPlay to announce the message when the notification goes off, like it does with Apple's messages app. As my phone is set right now, when I have my airPods in, it will announce the notification from my app. But not for CarPlay. What do I need to add to my app to allow CarPlay to announce the message that comes in from a notification (again, local, not a push notification).
0
0
442
Aug ’23
Notifications in Driving Task CarPlay app
I have an app with the "Driving Task" CarPlay entitlement. When I ask for permission for notifications in CarPlay (UNAuthorizationOptionCarPlay), and I check "carPlaySetting" in the UNNotificationSettings after granting permission, it get a value "UNNotificationSettingNotSupported" (the setting is not available to your app). Is this a bug? It feels like one. The app shows distances to some locations, and provides warnings to the user when approaching those locations. It is common for my users to use it at the same time they use a navigation app and switch between the two apps. But when they have the navigation app in foreground, they ask why my app is not showing notifications when giving an audio warning. The notifications are not even shown on the screen of the iPhone, the screen is turned off in iPhone 14 Pro when connecting to CarPlay, and the screen does not turn on when the app is in background in CarPlay and tries to show a notification.
3
1
1.6k
Aug ’23
Mic not working when using phone connected to Carplay.
This issue only happens on my phone, 12 Pro. My wife has a 12 Pro Max and carplay don't have any issues. Using phone app in carplay was working several days ago. I'm on IOS beta program and I have 17.0. The person on the other end of the call said that he thinks he hear a sound when I'm talking but it's not my voice. When I switch to use speaker on my phone then the other party can hear me clearly. But the sound now is on my phone not on the car's speaker. I know it's not my phone's mic coz I can use Siri on carplay. Also, it's not my car's mic coz my wife's 12 Pro max works fine. My wife's phone is NOT on the IOS beta program. I already did RESET ALL SETTINGS and still the same. I am hesitant to factory reset it, I have a lot on my phone. Is there a setting I'm missing?
0
0
734
Aug ’23
Audio entitlement for CarPlay
Does anybody have insight into why Apple would give a developer map display entitlement but would forget to give audio entitlement? We've contacted Developer support and keep being told they are investigating and to wait...it's been several MONTHS. Beginning to think they might be revamping CarPlay which may require all new entitlements. Anybody have any similar experience? Thanks in advance for your help.
2
0
484
Jul ’23
[CarPlay] CarPlay Simulator with external accessories
Hi all, I am trying to use the new CarPlay Simulator (the one provided with the Xcode Additional Tools) to test an application that uses a protocol string. My question is: is there a way to edit this protocol string on this application? Because as of right now, my app is not shown in the CarPlay Simulator, as it does not have the required protocol string. I've used the Xcode simulator, and protocol strings can be added using: defaults write com.apple.iphonesimulator CarPlayProtocols -array-add <protocol-string> But I've not found a way to do this on the standalone application. Thank you all in advance
1
0
729
Jul ’23