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])
Topic: App & System Services SubTopic: General Tags:
Jul ’23
Reply to CarPlay additional tools simulator automaker app testing
yup, works for me. The protocol string you specified in the entitlement file must also be specified in the CarPlay Simulator under Configuration -> Automaker Apps
Replies
Boosts
Views
Activity
Jul ’23
Reply to [CarPlay] CarPlay Simulator with external accessories
Assuming you are building an automaker app, specify the protocol in the entitlement file under "com.apple.developer.carplay-protocols", then in CarPlay Simulator, goto Configuration -> Automaker Apps and specify the same protocol string
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Does Carplay work in Enterprise apps?
we got it working with enterprise app
Replies
Boosts
Views
Activity
Jul ’23
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.
Replies
Boosts
Views
Activity
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])
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23