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

React native app gets crash on ZoomUs.startMeeting() or ZoomUs.joinMeeting() #375

Open
shahajiwissen opened this issue Jan 31, 2025 · 0 comments

Comments

@shahajiwissen
Copy link

shahajiwissen commented Jan 31, 2025

I am integrating zoom into react native application. App is getting crash when I try to join or start a meeting. Below are versions used react native- 0.74.3 react-native-zoom-us- 8.0.1

ZoomUs.initialize() is working correctly and I get the success response. ZoomUs.startMeeting() or ZoomUs.joinMeeting() crashes the app.

Required jwtToken and zoomAccessToken are created from ApiKey and SecretKey

useEffect(()=>{
async function fetchData() {
console.log("inside fetch dataa")
try {
await ZoomUs.initialize({
jwtToken: token,
domain: 'zoom.us',
// appKey: 'FW59TFeBQ02VOpMtwlqaRg',
// appSecret: 'KuVIOqnCYamiURJAJiZoYEOGLDQY1SOo',
},
{
disableShowVideoPreviewWhenJoinMeeting: true,
enableCustomizedMeetingUI: true,
}).then(async(res)=>{
console.log("Zoom SDK initialization..............",res)
}).catch((err)=>{
console.log("Zoom SDK initialization error.............",err)
});
} catch (error) {
console.error('Zoom SDK initialization failed: ', error);
}
}
fetchData();
},[])

const joinMeet = () => {
try {
const meetingOptions = {
meetingNumber: '1234567890',
userName: 'Test user',
zoomAccessToken: zak,
};

      ZoomUs.startMeeting(meetingOptions)
        .then((res) => {
          console.log('Successfully joined meeting',res);
        })
        .catch((error) => {
          console.error('Error joining meeting:', error);
        });
   } catch (error) {
    console.log("Zoom error.............",error)
   }
}

When I click on Join button, app get crashed without any logs. I tried with latest version of react-native-zoom-us. Added required permissions given in official documentation of react-native-zoom-us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant