calvinckho / capacitor-jitsi-meet

This plugin is used to make video calls using Jitsi video platform (https://meet.jit.si) on iOS and Android using Ionic Capacitor.
85 stars 40 forks source link

App stops working when joining conference #120

Open tylert93 opened 3 days ago

tylert93 commented 3 days ago

Android version: 14 Node version: 18.16.1 Android Studio Version: Android Studio Koala | 2024.1.1

Packages "@capacitor/android": "^6.0.0", "@capacitor/app": "^6.0.0", "@capacitor/browser": "^6.0.0", "@capacitor/core": "^6.0.0", "@capacitor/haptics": "^6.0.0", "@capacitor/ios": "^6.0.0", "@capacitor/keyboard": "^6.0.0", "@capacitor/preferences": "^6.0.0", "@capacitor/splash-screen": "^6.0.0", "@capacitor/status-bar": "^6.0.0", "capacitor-jitsi-meet": "^6.1.0", "react": "^18.2.0",

I have an Android application in development. This is built with React and Capacitor. We are using your capacitor-jitsi-meet package to connect to Jitsi and join a video call. However whenever calling the Jitsi.joinConference() method, the app stops working, however the response we get from the request is {success: true}.

We are using the recommended testing configuration from the NPM page:

Jitsi.joinConference({ roomName: 'room1', url: 'https://meet.jit.si', featureFlags: { 'prejoinpage.enabled': false, 'recording.enabled': false, 'live-streaming.enabled': false, 'android.screensharing.enabled': false, }, })

EDIT: The IOS build of the application works perfectly and I am able to join a call

calvinckho commented 2 days ago

Can you include the logcat debugging log from Android Studio?

tylert93 commented 2 days ago

Here you go: motorola-moto-g13-Android-14_2024-10-16_225145.logcat.zip

calvinckho commented 2 days ago

{ "header": { "logLevel": "ERROR", "pid": 1106, "tid": 1892, "applicationId": "surfaceflinger", "processName": "surfaceflinger", "tag": "BufferQueueDebug", "timestamp": { "seconds": 1729115184, "nanos": 672000000 } }, "message": "855f959 co.flowmo.oocrdcp/com.capacitor.jitsi.plugin.JitsiActivity#116613 id info cannot be read from \u0027855f959 co.flowmo.oocrdcp/com.capacitor.jitsi.plugin.JitsiActivity#116613\u0027" },

The reason it throws an error because 'room1' is too common. You need to choose a text string that is more complicated such as "testjitsiroom2850012"

tylert93 commented 2 days ago

Apologies for the confusing since my first post, I have tested the application using production ready configuration where a uuid is used for the roomName and I am still getting the same error. The configuration is as follows:

{ roomName: "1b7f9f9f-7982-4782-a383-d539a6891377", url, displayName: "Tom", subject: "New test meeting", featureFlags: { 'prejoinpage.enabled': false, 'recording.enabled': false, 'live-streaming.enabled': false, 'invite.enabled': false, 'android.screensharing.enabled': false, 'add-people.enabled': false, 'calendar.enabled': false, 'call-integration.enabled': false, 'chat.enabled': false, 'filmstrip.enabled': false, 'kick-out.enabled': false, 'meeting-name.enabled': false, 'video-share.enabled': false, }, token, // jwt authentication token configOverrides: { disableModeratorIndication: true, disableRemoteMute: true, disableReactionsModeration: true, faceLandmarks: { enableFaceCentering: true, faceCenteringThreshold: 20, captureInterval: 1000, }, p2p: { enabled: false, }, breakoutRooms: { hideAddRoomButton: true, hideAutoAssignButton: true, hideJoinRoomButton: true, }, }, }

Please find the logcat file showing the same error attached: jitsi_error.logcat.zip

If this error was due to the roomName wouldn't this cause an issue on ios aswell?

tylert93 commented 2 days ago

Even when I change to a roomName in the format you suggest i.e. "oocrMeeting19343973947", the previous error goes away however the same behaviour is observed, however the issue now appears to be the following:

FATAL EXCEPTION: main Process: co.flowmo.oocrdcp, PID: 20022 java.lang.UnsupportedOperationException: This method is not supported for ReactViewGroup instances at com.facebook.react.views.view.ReactViewGroup.setBackground(ReactViewGroup.java:234)

error.logcat.zip

Any advise you could give would be greatly appreciated.

calvinckho commented 1 day ago

I searched the Jitsi Meet SDK source code but could not find ReactViewGroup.java. I was not able to trace the error to any line of code in the SDK.

On the other hand, have you given the Jitsi React Native SDK a try? https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-react-native-sdk/