Errors while integrating the jitsi meet android sdk
See original GitHub issueHello,
I am currently building a React-native application and I want to integrate Jitsi as a new activity. So I decided to use the jitsi meet sdk. I started by integrating the the android sdk (I used the iOS sdk in another app without problem before).
I have tried the following steps:
-
I bind a native module on my app to create an intent that will navigate to a
JitsiActivity
. Here are my .java files. Archive.zip and my Component that contains the button LoginScreen.js.zip -
Add the Maven repository https://github.com/jitsi/jitsi-maven-repository/raw/master/releases and the dependency org.jitsi.react:jitsi-meet-sdk:1.9.0 into my build.gradle. ==> When I run react-native run-android, my app launch correctly. Then when I try to open the JitsiActivity, I get an error in logCat that method
setJSMainModuleName
does not exist error1.txt Seems to be the same problem as https://github.com/jitsi/jitsi-meet/issues/2411 and https://github.com/jitsi/jitsi-meet/issues/2314 -
I realised that the maven repo is not up to date (last commit was 6 months ago) and that the problem is solved with the new jitsi app. So I decided to build the sdk with the last version of JitsiMeet. Then I forked your repo and I added my brand new
jitsi-meet-sdk-1.9.0.aar
to my repo https://github.com/jean-ben-guigui/jitsi-maven-repository. -
I changed the dependency in my build.gradle and ran
react-native run-android
. ==> I then have the following error error2.txt
I feel like I have not built the sdk correctly. Any help with that last error would be highly appreciated. If not, an update of the maven repo with latest source of Jitsi Meet SDK for Android would be amazing.
- First Update: I have built a basic native android app with two activities : One main activity and one that extends JitsiMeetActivity. It works. So there is no problem with the jitsi-meet-sdk I built. The problem seems to came from the fact that AppRegistry.registerComponent is called two times: One in my app and one in the Jitsi sdk. Is there an easy way out of this?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6
Top GitHub Comments
Why is this not yet solved? We really need some docs for integrating jitsi in our react native project…
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.