Swift CarPlay push notifications not work

Hello! I try to create app which show push notifications in CarPlay. For register I use this code:

let center  = UNUserNotificationCenter.current()
    center.requestAuthorization(options: [.sound, .alert, .badge, .criticalAlert, .carPlay]) { (granted, error) in
             if granted {
                   DispatchQueue.main.async {
                       UIApplication.shared.registerForRemoteNotifications()

                 print("Register for ios12+");


                   }
             } else {
                print(error!)

             }

Register is ok, I get push, but if I go to Settings - my app - Notifications. I don't see any toggle for CarPlay. Other app have it. And as result my app not show notifications on car display...

Please help, how to add CarPlay notifications to my app? Thanks!

Terms of Service

Privacy Policy

Cookie Policy