Hello,
When my mobile app is terminated, say 30 secs later the CarPlay app stops working. I don't get the access token that is saved in the KeyChain. The same happens when my mobile app is in background for more than 20 secs or so.
Please suggest the way forward. Or is this the expected behavior?
Your app in CarPlay is the same process as your app on device. When your app exits for any reason, it will exit on the CarPlay screen as well.
CarPlay apps may be launched in CarPlay - and only in CarPlay. CarPlay apps are expected to work even if they are launched for the first time on the CarPlay screen and even if they are never launched on the device screen.