@shortcipher Using the exact code you posted, the notification still shows up on the iPhone simulator, not on the CarPlay simulator.
So for now I'm just working with a test app in the simulator. In the test app I've given it a CarPlay entitlement. To make sure that works, I used CarPlay.parking. With code from other parts of the internet, CarPlayTest shows up on the CarPlay simulator. So the entitlement works fine. I switch to CarPlay.communication (which I think is the correct entitlement for this?) and the icon goes away on the CarPlay simulator (I would think this is correct). The notification always shows up on the iPhone simulator. I have deleted the app and reinstalled. .parking (open and closed on CarPlay simulator) and .communication, the notification shows up on the iPhone.
Is this just a simulator problem, and if I get Apple approval for entitlement it will work, or am I missing something else.
Post
Replies
Boosts
Views
Activity
I'm trying to fix one of my apps, which uses Local Notifications. Of course when the phone is plugged into CarPlay, nothing happens. Was hoping to get some leads as to how to get Local Notifications on CarPlay. I've played around with your answer, but it still doesn't do anything (and I haven't added CarPlay)
Do you have to add CarPlay to your app (I assume yes).
I'm not an auto maker so I assume I can't add CarPlay for Automaker. Can it be done with CarPlay.communication?
It appears that SiriKit needs to be added as well?
Basically, what items did you use to get these Notifications to be shown on the CarPlay screen and then announced.
There is so little information out there on this topic. Just everyone saying "It can't be done".
Any help would be greatly appreciated.
Does anyone know how to hide this error in the console? The writing of the speech works fine, so for now I'd just like to ignore just this error (which comes up dozens of times with what I'm working on).
I just transferred my apps from my personal developer license to my new companies license. They are all listed in iTunes Connect under "Agreements, Tax, and Banking". They are all active. Not sure if they had said other things during the transfer process, which was very quick for me.
https://developer.apple.com/library/archive/technotes/tn2311/_index.html
Talks about the prefix. Since I'm not using wildcards, it appears I have to call Apple to fix this.
I have now narrowed down the problem. An App ID has more than what you can see (called a Prefix). com.YourCompany.YourAppName is really YourDeveloper#.com.YourCompany.YourAppName. So because I transferred the app from another account, my device has the app downloaded from the AppStore (myOldDeveloper#.com.MyCompany.MyAppName. Now the app has (myNewDeveloper#.com.MyCompany.MyAppName). I can see this clearly looking where you create a provision profile and you pick the app id.
Stanford puts out a great course. Spring 2020 covers SwiftUI.
Thanks. Just making sure it wasn't something I did (You never know). I'll just have patience and I'm sure it'll work itself out.