I am developing a CarPlay driving tasks app and is able to display push notifications on CarPlay. I am looking at a way to get a tap action handler for push notifications on CarPlay such that when a user taps the notification and by default the app opens, but I want to present a CPInformationTemplate with data corresponding to the tapped notification.
Apple CarPlay Notifications - Tap action handler
You are looking for userNotificationCenter(_:didReceive:withCompletionHandler:)
This delegate function will be called when the user interacts with the notification, and the UNNotificationResponse parameter will contain information about the notification that invoked it.