Closed aivision369 closed 2 years ago
Are you calling JitsiMeetActivity.launch() ? From where?
@saghul I am calling JitsiMeetActivity.launch()
from my Activity class as below :
public void launchLiveCallRequest() {
JitsiMeetConferenceOptions options
= new JitsiMeetConferenceOptions.Builder()
.setRoom(PrivateCallSession.getInstance().getRoomId())
.build();
JitsiMeetActivity.launch(MyApp.getContext(), options);
}
Why are you passing your app's context instead of the calling activity as the first argument?
I have updated the latest version of JitsiMeet 4.1.0
and my error is solved. thank you.
I have integrated this SDK and its working fine up to Android 9 and below but when I run the app on Android 10 then getting below exception :
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want
I have done some R&D and see that I need to add this flag
inteng.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
while we start the activity but activity is launching fromJitsiMeet
dependency so how can we add this flag? because once we add dependency in the project, we are unable to update anyJitsiMeet
sdk files.@saghul Help would be appreciate and please help me.