I install your plugin in an app that uses react-native-firebase too.
I has not problems with firebase and recives notifications and messages without problems.
When I put a button on view and onPress call your example function the app crashes:
The code in react native app is:
JSX:onPress={ () => {this.iniciaVideoLlamada()} }>
Js:
iniciaVideoLlamada = () => {
JitsiMeet.initialize();
JitsiMeetEvents.addListener('CONFERENCE_LEFT', (data) => {
console.log('CONFERENCE_LEFT');
});
setTimeout(() => {
JitsiMeet.call('https://meet.jit.si/pepe');
}, 1000);
}
The only change to your code is the url (and the function name)
The FATAL error that shows android studio is:
E/ReactNativeJS: RNFirebase core module was not found natively on Android, ensure you have correctly added the RNFirebase and Firebase gradle dependencies to your `android/app/build.gradle` file.
See http://invertase.link/android for the android setup guide.
E/ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.eternity.nulesinfo, PID: 10629
com.facebook.react.common.JavascriptException: RNFirebase core module was not found natively on Android, ensure you have correctly added the RNFirebase and Firebase gradle dependencies to your `android/app/build.gradle` file.
See http://invertase.link/android for the android setup guide., stack:
t@645:640
<unknown>@645:2187
v@2:1496
d@2:949
o@2:435
<unknown>@644:127
v@2:1496
d@2:949
o@2:435
<unknown>@641:206
v@2:1496
d@2:949
o@2:435
<unknown>@466:354
v@2:1496
d@2:949
o@2:435
<unknown>@339:229
v@2:1496
d@2:949
o@2:435
<unknown>@11:58
v@2:1496
d@2:879
o@2:435
global code@884:4
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:203)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
at java.lang.Thread.run(Thread.java:761)
The exact error place is in JitsiMeetView.class file, line 199
this.reactRootView.startReactApplication(ReactInstanceManagerHolder.getReactInstanceManager(), "App", props);
Any idea?, thanks in advance for your help (and this plugin too)
Gracias por adelantado por la ayuda
Un saludo
Javi
He visto que el plugin tira de la versión 1.16.0 de jitsi y ahora está por la 1.21.0
Creo que puede ser el problema,
Si vas a https://github.com/jitsi/jitsi-meet/tree/master/android/app indica que la actualización de hace nueve días era por "rn: add Firebase integration", justo la causa del problema.