Closed mubashiralisiddiqui closed 2 weeks ago
Make sure you add a listener for onReadyToClose: https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-react-native-sdk#eventlisteners onConferenceTerminated is not a reliable way to decide to dispose the component.
@saghul Thanks event listner worked for me for android but for ios onReadyToclose not triggered so I need solution for ios now
In which case are you not getting it?
when I press on cancel call button the red button then onReadyToClose not triggered nothing happen same code working for android @saghul
when I click on cancel call it takes me out to join room page and nothing happen and the listnere didn't called
Which cancel, the Close one on the pre-join screen? Does the same happen on the sample app?
after I leave the meeting by cancel on red button press it takes me to pre-join screen and then nothing happen and yes I can reproduce same on example app
the issue is onReadyToclose is not triggering on ios
@Calinteodor PTAL and see if you can repro.
https://github.com/jitsi/jitsi-meet-sdk-samples/assets/26413496/03b78646-d647-4266-a093-b774953f11e9
Using the sample app on iOS and onReadyToClose works as expected. Same for Android. Issue is not reproducible.
I am using the sample app project for my app I transfer all my code into sample app project and the code I used for Meeting component is exactly the same as in sample project
@saghul @Calinteodor I noticed now that its working fine on ios 17.0.1 simulator but not with ios 17.2 can you check if its related to specific ios version I checked on iphone14 simulator and it work well
Simulators can be unreliable.
Since they don't even emulate a camera I'd recommend you test in real hardware.
Please don't hijack issues. Open a new one and provide logs.
its working fine now I was using the url like this https://mybaseURL/ROOMName?token then I replace the url to just the base url https://mybaseURL and the events started working
after we connect to the meeting url when we click on red button of end call nothing happen in react native android but in ios it works and get back to the join meeting page but on that page also close meeting option do nothing ios issue
android issue
here is my usage of code ` const Meeting = props => { const {route} = props; const jitsiMeetingRef = useRef(null); const navigation = useNavigation(); const backHandler = useRef(null);
useEffect(() => { if (Platform.OS === 'android') { backHandler.current = BackHandler.addEventListener( 'hardwareBackPress', () => { onClose(); return true; }, ); }
}, []); const urlObject = new URL(route?.params?.jitsiUrl); const onClose = () => { console.log("close67890987y") navigation.goBack(); navigation.navigate('myBooking'); }; const onConferenceTerminated = nativeEvent => { console.log('Jitsi Terminated'); // JitsiMeet.endCall(); onClose(); }; // Get the value of the 'jwt' parameter from the URL search parameters const jitsiUrl = route?.params?.jitsiUrl; const jwt = jitsiUrl.split('?jwt=')[1]; const room = route?.params?.user || 'room'; return ( <JitsiMeeting // eventListeners={eventListeners} ref={jitsiMeetingRef} onConferenceTerminated={onConferenceTerminated} style={{flex: 1}} room={room} serverURL={route?.params?.jitsiUrl || 'https://meet.jit.si/'} token={jwt || ''} /> ); };
`