jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
44 stars 33 forks source link

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

Open Holofox opened 7 months ago

Holofox commented 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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 7 months ago

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

Holofox commented 7 months 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 7 months ago

It does, what version are you testing?

Holofox commented 7 months ago

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

saghul commented 7 months ago

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

koraxis commented 4 months ago

Is there any update on this? We are experiencing the same issue with the jitsi_meet_flutter_sdk 0.4.2. The Android ongoing notification tap does not bring the user back to the app or the call.

saghul commented 4 months ago

We are going to release a new SDK version next week, which should fix this.

@Calinteodor pl post an update here once it's out.

jan10 commented 3 months ago

@saghul thank you very much! I have the same problem.

Calinteodor commented 3 months ago

Jitsi Meet SDK Android and iOS 10.0.0 have been released. You can check the full release log right here https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md#1000-2024-08-07