Post

Replies

Boosts

Views

Activity

Reply to APNS Notification Not displayed on CarPlay screen
Try this: You have to setup a notification category with .allowInCarPlay option. Then use the category name in the notification's categoryIdentifier field. let category = UNNotificationCategory(identifier: "CarPlay", actions: [], intentIdentifiers: [], options: [.allowInCarPlay]) UNUserNotificationCenter.current().setNotificationCategories([category]) and also .carplay option when requesting notification authorization: UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge, .carPlay]) and set "CarPlay" for the categoryIdentifier in the push payload (it can be any string, just need to match what you used in UNNotificationCategory.
Jul ’23
Reply to displaying local notification in CarPlay app
I was able to get this to work by configuring the following: You have to setup a notification category with .allowInCarPlay option. Then use the category name in the notification's categoryIdentifier field. let category = UNNotificationCategory(identifier: "CarPlay", actions: [], intentIdentifiers: [], options: [.allowInCarPlay]) UNUserNotificationCenter.current().setNotificationCategories([category]) and also .carplay option when sending the notification: UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge, .carPlay])
Jul ’23