Open shay-te opened 3 years ago
I have the same issue with the code from the example App !
React Native : ^0.63.3
"react-native-jitsi-meet": "^2.1.1",
constructor(props) {
super(props);
}
componentDidMount() {
console.log('Jitsi Call');
setTimeout(() => {
const url = 'https://meet.jit.si/ceciestunereunion'; // can also be only room name and will connect to jitsi meet servers
const userInfo = { displayName: 'User', email: 'user@example.com', avatar: 'https:/gravatar.com/avatar/abc123' };
JitsiMeet.call(url, userInfo);
/* You can also use JitsiMeet.audioCall(url) for audio only call */
/* You can programmatically end the call with JitsiMeet.endCall() */
}, 1000);
}
componentWillUnmount() {
JitsiMeet.endCall();
}
onConferenceTerminated = (nativeEvent) => {
/* Conference terminated event */
console.log('Conference terminated event')
}
onConferenceJoined = (nativeEvent)=> {
/* Conference joined event */
console.log('Conference joined event')
}
onConferenceWillJoin = (nativeEvent) => {
/* Conference will join event */
console.log('Conference will join event')
}
render() {
return (
<View style={{
flex: 1,
backgroundColor: 'black'
}}>
<JitsiMeetView style={{ flex: 1, height: '100%', width: '100%' }} />
</View>
);
}
}```
Figured out the problem and right now it works for me in development and build release apk. Full diff of my changes you can find here.
@react-native-community/netinfo
to 4.7.0application
tag in android/app/src/debug/AndroidManifest.xml
android:allowBackup="true" tools:replace="android:allowBackup"
application
tag in android/app/src/main/AndroidManifest.xml
tools:replace="android:allowBackup"
manifest
tag in android/app/src/main/AndroidManifest.xml
xmlns:tools="http://schemas.android.com/tools"
packagingOptions {
exclude 'META-INF/react-native-webview_release.kotlin_module'
}
debugImplementation(project(':react-native-jitsi-meet')) {
exclude group: 'com.facebook',module:'hermes'
}
Possible fix for:
@alexandrtovmach after trying to do it, something still work abnormal.
Did not expect event target to be a number. Should have been a native component
@nanhlua96 I believe things that you have is not related to "Android crash issue", so can't suggest anything here
but maybe I know what you have :wink:, just check: https://github.com/skrafft/react-native-jitsi-meet/issues/265
@alexandrtovmach thanks, I also try another way and it not require downgrade netinfo package that change minSdkVersion and tools.build:gradle in android/build.gradle and in android/app/build.gradle just need
implementation ('org.jitsi.react:jitsi-meet-sdk:3.1.+') {
exclude group: 'com.facebook.react', module:'react-native-vector-icons'
exclude group: 'com.facebook.react', module:'react-native-webview'
exclude group: 'com.facebook.react', module:'react-native-youtube'
exclude group: 'com.facebook.react', module:'react-native-community-async-storage'
// exclude group: 'com.facebook.react', module:'react-native-linear-gradient'
exclude group: 'com.facebook.react', module:'react-native-background-timer'
exclude group: 'com.facebook', module:'hermes'
transitive = true
}
@nanhlua96 is that works for runtime and release?
@alexandrtovmach I just test on simulator and I am still working with those unresponsible buttons, but I am sure you can test it on real devices.
I face with some change in metro config that the old blacklist has removed so I replace with exclusion list but i don't really know it correct or not
const blacklist = require('metro-config/src/defaults/exclusionList');
...
resolver: {
blacklistRE: blacklist([
/ios\/Pods\/JitsiMeetSDK\/Frameworks\/JitsiMeet.framework\/assets\/node_modules\/react-native\/.*/,
]),
...
I don't know Has blacklistRE in resolver changed also
To be sure that solution form https://github.com/skrafft/react-native-jitsi-meet/issues/251#issuecomment-833210944 works, you need to run app in real-time (emulator), and also compile an APK and run it too. Because I found it a bit annoying when I though that I fixed the issue, and then everything fails on release build
Hello all trying to call but the entire application crash.