CPContactTemplate does not display buttons iOS26

I'm trying to display CPButtons (CPContactCallButton, CPContactMessageButton) in CPContactTemplate. They are displayed using device with iOS16, but with iOS26 device CPContactTemplate only displays contact image and contact name. No buttons. Is it a bug? I don't have iOS17/18 devices to try.

Thanks for the post, so when using the https://developer.apple.com/documentation/carplay/cpcontacttemplate api for CarPlay has changed the output from iOS 16 to 26?

Can you provide a focused sample showing the issue?

The most common reason for buttons not showing is incorrect setup. The code for creating and configuring the buttons must be correct. Are you correctly initializing the button classes (e.g., CPContactCallButton())?Are you setting the properties of the buttons correctly (e.g., contactName, phoneNumber, messageBody)?Ensure you have implemented logic to handle button presses. Buttons require interaction to perform actions. Without either the target-action pattern (using addTarget) or implementing a CPButton delegate method the buttons have nothing to execute. The template needs to be presented using the correct CarPlay CPInterfaceController. Ensure that you are displaying your CPContactTemplate through the CarPlay interface. Ensure the view controller which is housing the CarPlay template is correctly set up. CarPlay has specific lifecycle events you need to be aware of. didConnect and didDisconnect might be important.

Double-check that your layout constraints aren't interfering with the display of the buttons. Constraint conflicts can cause views to be hidden or be sized inappropriately. Use the Xcode debugger's view hierarchy debugger to visually inspect the view hierarchy and constraints. If the buttons are present but invisible, check their sizing. Are they being allocated enough space to be displayed? Please, check again which iOS version you have installed on your CarPlay device. It is much more likely that you are speaking about the device using iOS version 17 or 18.

Looking forward to your sample focused project.

If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

CPContactTemplate does not display buttons iOS26
 
 
Q