We need to know how to check whether the app running in CarPlay is in foreground or background when the phone is locked or app is not opened in Phone. Because applicationDidEnterBackground and applicationWillEnterForeground is not being called.
Please help us to understand the lifecycle of CarPlay.