client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[Bug] When enable screen share not show the permission dialog on iOS and video track is not pulished

Open nicolarigoni opened this issue 1 month ago • 0 comments

Describe the bug From when I upgrade to latest versione 2.5.3 the screen share feature is not working, before it ask for permission now no popup is shown and not video track is published. Also in console when it was working it shows a lot of log now no log is shown

    final options = const ConnectOptions(autoSubscribe: true, protocolVersion: ProtocolVersion.v12);
    try {
      await _room!.connect(Configuration.liveKitUrl, connectionToken, connectOptions: options);
    } catch (e) {
      await disconnectFromRoom();
      LogManager.writeLog(LogType.error, 'connectToRoom', 'Non è possibile connettersi al server: $e', sendToServer: true);
      return GenericResponse(false, message: 'Non è possibile connettersi al server: $e');
    }

    try {
      _isScreenShareEnabled = true;
      await _room?.localParticipant?.setScreenShareEnabled(_isScreenShareEnabled);
      // await _room?.localParticipant?.setCameraEnabled(true);
      LogManager.writeLog(LogType.info, 'connectToRoom', 'localParticipant: ${_room?.localParticipant?.identity} _isScreenShareEnabled: ${_isScreenShareEnabled ? 'TRUE' : 'FALSE'}');
    } catch (e) {
      await disconnectFromRoom();
      LogManager.writeLog(LogType.error, 'connectToRoom', 'Non è possibile avviare la chiamata: $e', sendToServer: true);
      return GenericResponse(false, message: 'Non è possibile avviare la chiamata: $e');
    }

Expected behavior The screen is shared and popup is shown

Platform information iOS 17, 18, 26

  • Flutter version: 3.35.3
  • Plugin version: 2.5.3
  • Flutter target OS: real device
  • Flutter target OS version:
  • Flutter console log: no error log

nicolarigoni avatar Nov 18 '25 17:11 nicolarigoni