Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CarPlay sometimes fails to load unless the app is already open on the mobile device #1973

Open
mitchdowney opened this issue Oct 12, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@mitchdowney
Copy link
Member

Platform: ios / Version: 4.13.9 build 2317

I’m on an iPhone 13, and your app frequently gets hung in CarPlay. This is when I first attempt to access the app. Sometimes I get a completely black screen. Other times I get a Loading screen that never resolves. See attached. this happens more often than it works, unfortunately.

Usually if I go to the app directly on my phone, it triggers it to proceed and it works normally from there. But trying through the CarPlay interface fails often.

original-7BD01777-B93E-4C2F-A463-C8A9AEFD53DD

@mitchdowney mitchdowney added the bug Something isn't working label Oct 12, 2023
@harrymash2006
Copy link

I am also facing the same issue in my app which is using react-native-carplay. Unless the phone app is open, the app on the CarPlay do not work and shows blank screen.

@mitchdowney
Copy link
Member Author

@harrymash2006 unfortunately this error report would indicate we have not 100% solved this problem, but I can direct you to the logic we added which has seemed to work for all the devices we have tested at least. IIRC we implemented two different scenes to load on app launch, one for Phone, and one for CarPlay, and the CarPlay one handles establishing the bridge with React Native in the app when the app is launched from CarPlay instead of the device.

UISceneConfiguration *scene = [[UISceneConfiguration alloc] initWithName:@"CarPlay" sessionRole:connectingSceneSession.role];

@harrymash2006
Copy link

Hi @mitchdowney actually tried this already in another app too using react-native-carplay but it shows blank screen on Carplay unless the phone app is open.

@mitchdowney
Copy link
Member Author

@kreonjr could this be related? birkir/react-native-carplay#158 (comment)

@G-nn-r
Copy link

G-nn-r commented Sep 27, 2024

I can confirm this is still an issue on 4.16.1, build 2609 (tested on iPhone 13 Mini with iOS 18.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants