Good day, colleagues! Faced a problem - my push notifications work fine on any device, but they stubbornly refuse to work on CarPlay.
I have a code in my AppDelegate:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) - Bool {
let center = UNUserNotificationCenter.current()
center.delegate = self
center.requestAuthorization(options: [.alert, .sound, .badge, .carPlay, .announcement, .criticalAlert, .provisional]) { (granted, error) in
}
return true
}
Maybe someone was faced with this problem?
Selecting any option will automatically load the page