jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
31 stars 25 forks source link

Unable to return to a meeting from a push [Android] #56

Open Holofox opened 3 weeks ago

Holofox commented 3 weeks ago

Hello!

Precondition: The app has access to push notifications.

If you connect to a meeting and minimize the application, a push notification with the connected meeting will appear in the system curtain

Actual behavior: If you tap on push notification, nothing happens. Probably due to PIP mode. Expected behavior: If you tap on push notification, the app will open with an active meeting.

e95d4210-7b84-1f7b-ba8f-0b54998451de

Conference options:

  Future<void> joinMeet(
    Uri url, {
    bool iosScreenSharingEnabled = true,
    bool pipWhileScreenSharingEnabled = true,
    bool calendarEnabled = false,
    bool callIntegrationEnabled = false,
    bool inviteEnabled = false,
    bool iosRecordingEnabled = true,
    bool? preJoinEnabled,
  }) async {
    final options = JitsiMeetConferenceOptions(
      serverURL: url.origin,
      room: url.path.replaceFirst('/', ''),
      featureFlags: {
        FeatureFlags.iosScreenSharingEnabled: iosScreenSharingEnabled,
        FeatureFlags.pipWhileScreenSharingEnabled: pipWhileScreenSharingEnabled,
        FeatureFlags.calenderEnabled: calendarEnabled,
        FeatureFlags.callIntegrationEnabled: callIntegrationEnabled,
        FeatureFlags.inviteEnabled: inviteEnabled,
        FeatureFlags.iosRecordingEnabled: iosRecordingEnabled,
      },
      token: url.queryParameters['jwt'],
    );
    await JitsiMeet().join(options);
  }

Android version: 13 TP1A.220624.014 (MIUI Global 14.0.4) Device: Redmi 13C.

jitsi_meet_flutter_sdk: ^0.3.0
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.4.1 23E224 darwin-x64, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
Holofox commented 3 weeks ago

I also noticed that if, when the application is minimized, you close the PIP window and click on the application icon, then Jitsi remains minimized and cannot be called back.

saghul commented 3 weeks ago

If you connect to a meeting and minimize the application, a push notification with the connected meeting will appear in the system curtain

You mean the one that says "ongoign meeting"? Or a custom one you have?

Holofox commented 3 weeks ago

If you connect to a meeting and minimize the application, a push notification with the connected meeting will appear in the system curtain

You mean the one that says "ongoign meeting"? Or a custom one you have?

Probably an “ongoing meeting”, that is, after the user joins the meeting, Jitsi shows an active push notification that cannot be swiped away.

Holofox commented 3 weeks ago

@saghul, when you click push, an error occurs:

2024-04-18 17:24:23.839  1416-2076  ActivityStarterImpl     system_server                        E  Error: Activity class {com.example/org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService} does not exist.
saghul commented 3 weeks ago

Oh, that is really weird. Can you reproduce the same problem in the official Jitsi Meet app?

Holofox commented 3 weeks ago

Oh, that is really weird. Can you reproduce the same problem in the official Jitsi Meet app?

The official app does not request access to notifications, so the notification is not shown there.

saghul commented 3 weeks ago

It does, what version are you testing?

Holofox commented 3 weeks ago

@saghul, version app 24.0.1 build 16402670 (version sdk not showed)

saghul commented 3 weeks ago

Hum, you're right, something is going on. Thanks for the report!