Is this working for Swift UI LifeCycle. I am also getting the same error
Post
Replies
Boosts
Views
Activity
Thank you for your response and clarity on the topic. My CarPlay app is approved for EV Charging category.
One more question I have is, do we have any particular way that instantly delivers a message to the CarPlay once the user has given location permission in the iOS app so that the alert on CarPlay is hidden?
In the CarPlaySceneDelegate, I check for let status = locationManager.authorizationStatus and accordingly launch either my CarPlay Dashboard or the location permission alert.
Thanks a lot for your response. I am using the standalone simulator itself (mentioned in the WWDC22) to test the application. However, my iPhone shows a black screen when the CarPlay simulator runs.
I have the following implemented in the AppDelegate - configurationForConnecting, didDiscardSceneSessions.
In configurationForConnecting, it checks the role and launches the CarPlay. However my swiftUI app shows just black screen in the device. Any specific configuration required for swiftUI app?
Thanks a lot for your response. I am using the standalone simulator itself (mentioned in the WWDC22) to test the application. However, my iPhone shows a black screen when the CarPlay simulator runs. I have the following implemented in the AppDelegate - configurationForConnecting, didDiscardSceneSessions. In configurationForConnecting, it checks the role and launches the CarPlay. However my swiftUI app shows just black screen in the device. Any specific configuration required for swiftUI app?
How to dismiss the alert and launch the dashboard, as soon as the user gives the permission on the phone
Okay but is there a way I get the information from the phone that location has been enabled? Any callback that I need to implement?
Right now once the location is enabled, I need to restart the app only after which the dashboard loads
Could you share the reason for not allowing the CPSearchTemplate for EV Charging? If the feature is customised, are there any possibilities of Apple rejecting the app?
Spinner - I am doing a booking from CarPlay where minimal details are shown in CPInformationTemplate that has a button. On tap of button, I call an API so I need to show a loader indicating it takes time.
Toast - After the booking, I need to show a message to the user saying booking has been completed.
Will it crash if I try to customise and provide my own search template? I am just trying to find a possibility of having my own search template.