birkir / react-native-carplay

CarPlay with React Native
https://birkir.dev/react-native-carplay/
MIT License
655 stars 108 forks source link

Opening external simulator device CarPlay never triggers an event by the registerOnConnect #155

Open claus-lysholm opened 11 months ago

claus-lysholm commented 11 months ago

Describe the bug From my iPhone 15, iOS 17 simulator, opening external simulator device CarPlay never triggers an event by the registerOnConnect

To Reproduce Steps to reproduce the behavior:

  1. Template code found on your side implemented in React Native (ejected Expo) project
  2. Code execution started (yarn start)
  3. Using an iPhone 15, iOS 17 simulator, selecting external display = CarPlay from the I/O menu
  4. CarPlay.registerOnConnect is executed program start but events is never fired on opening/closing the separate CarPlay simulator

Expected behavior From your example code, I would expect the carPlayConnected to be set to true. That never happens since onConnect never fires. function onConnect() { setCarPlayConnected(true); }

Screenshots/Videos image

CarPlay (please complete the following information):

Android Auto (please complete the following information):

Additional context I'm running VScode on macOS Sonoma 14

claus-lysholm commented 11 months ago

Apart from that, really appreciating your effort in getting this project going!!

shubhadeep-foodhub commented 11 months ago

You can check this -> https://github.com/birkir/react-native-carplay/issues/150