onConferenceTerminated is not invoked

Description:

I have used Jitsi pre build sdk from maven. and implemented my class as follows.

implementation ('org.jitsi.react:jitsi-meet-sdk:2.+') { transitive = true }

public class JitsiCallActivity extends JitsiMeetActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jitsi_call);
        roomId = getIntent().getStringExtra("room_id");

        initConference();
        launchMeeting(roomId);
    }

    @Override
    protected void initialize() {
        Log.d("JITSI","INITIALIZED");
        super.initialize();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.d("DES","ON DESTROY");
    }

    @Override
    public void onConferenceTerminated(Map<String, Object> data) {
         Log.d("JITSI","MEET TERMINATED");
        super.onConferenceTerminated(data);
    }

    private void initConference(){
        URL serverURL;
        boolean isVideoCall = false;
        try {
            serverURL = new URL(KeyValues.JITSI_MEET_HOST);
        } catch (MalformedURLException e) {
            e.printStackTrace();
            throw new RuntimeException("Invalid server URL!");
        }

        JitsiMeetUserInfo userInfo = new JitsiMeetUserInfo();
        userInfo.setDisplayName("Telefon User");


        JitsiMeetConferenceOptions defaultOptions
                = new JitsiMeetConferenceOptions.Builder()
                .setServerURL(serverURL)
                .setWelcomePageEnabled(false)
                .setFeatureFlag("chat.enabled",false)
                .setFeatureFlag("call-integration.enabled", false)
                .setVideoMuted(false)
                .setUserInfo(userInfo)
                .setSubject("Sample room ")
                .build();
        JitsiMeet.setDefaultConferenceOptions(defaultOptions);

        Log.d("JITSI","CALL INIT");
    }
    private void launchMeeting(String roomName){
        JitsiMeetConferenceOptions options
                = new JitsiMeetConferenceOptions.Builder()
                .setRoom(roomName)
                .build();
        JitsiMeetActivity.launch(this, options);
        this.finish();
    }
}

But the onConferenceTerminated method doesn’t seems to be calling.

Expected behavior:

Invoke the onConferenceTerminated method after user left the conference.

Actual behavior:

onConferenceTerminated is not invoked.

Server information:

  • Jitsi Meet version:
  • Operating System:Ubuntu
    -Building Platform : Mac OS Catalina Version 10.15.3 (19D76)

Client information:

  • Browser / app version:Android 10 on google pixel.
  • Operating System:Android

Additional information:

I’ve tested with the project in jitsi-meet. It seems to work fine.

I couldn’t figure out what was missing here.

dropped a solution on this github issue