wide-shoe-67933
10/20/2025, 8:30 PMtall-airline-16756
10/20/2025, 8:30 PMtall-airline-16756
10/20/2025, 8:32 PMroom.remoteParticipants showing up empty when connecting with the microphone on iOS after updating to Flutter SDK 2.5.1. Let's work through this together and see what might be causing it.
Here are a few things that could be at play and some suggestions to try out:
• Track Initialization Bug: There was a fix in 2.5.1 related to how track properties initialize. It might help to double-check that your connection logic is updated to handle participant events correctly.
• iOS Plugin Conflicts: Sometimes, background service plugins like flutter_background_service can interfere with LiveKit's event channels. If you’re using any, try disabling them temporarily to see if that makes a difference.
• iOS Permissions: It’s important to make sure your Info.plist has the right microphone permissions set, like this:
<key>NSMicrophoneUsageDescription</key><string>$(PRODUCT_NAME) uses your microphone</string>
• Event Handling: Make sure you’re listening for participant events and checking remoteParticipants after the RoomConnectedEvent fires.
• Connection Timing: Also, confirm that room.connectionState is ConnectionState.connected before you try to access remoteParticipants.
To get a clearer picture and help you better, could you please share a bit more about your setup?
• Are you using any background service plugins?
• Could you share your connection code and when you check remoteParticipants?
• Do you see any console errors or warnings during connection?
• Does this issue happen if the microphone isn’t enabled?
With these details, I’ll be able to guide you more precisely. Looking forward to helping you get this sorted!
Sources: [Flutter iOS] SoundWaveformWidget / AudioVisualizerWidget Not Working (Miss... | Flutter quickstart | LiveKit Docs | lib/src/options.dartwide-shoe-67933
10/20/2025, 8:36 PMtall-airline-16756
10/20/2025, 8:38 PMroom.remoteParticipants. This is likely related to how participant updates are managed within LiveKit's event-driven system. When you enable the microphone, it can trigger track publication events, which might then lead to participant update events. Some recent fixes in Flutter SDK 2.5.1, like track property initialization and improvements specific to iOS WebRTC, could be influencing this behavior.
On iOS, there are a few extra things to keep in mind:
• Track Publication Events: Turning on the microphone might trigger events that update participant information.
• iOS WebRTC Conflicts: The fixes in 2.5.1 addressed some WebRTC pod version conflicts, which could affect how participant states are managed.
• Plugin Interference: Sometimes, background service or audio-related plugins (like flutter_background_service) can interfere with LiveKit’s event channels.
To help narrow down the cause, you might try:
• Logging participant counts before and after you enable the microphone to see exactly when changes happen.
• Running the same code on Android to check if this is something specific to iOS.
• Reviewing any background service or audio-related plugins that could be affecting event handling.
I understand this can be frustrating, and I want to assure you that this behavior isn’t what we expect—the participant list should stay consistent no matter the microphone state. If this issue continues, it might be worth diving deeper into the SDK’s event handling on iOS. Please feel free to reach out anytime; we’re here to support you through this!
Sources: example/lib/widgets/controls.dart | [Flutter iOS] SoundWaveformWidget / AudioVisualizerWidget Not Working (Miss... | lib/controllers/app_ctrl.dartwide-shoe-67933
10/20/2025, 8:41 PMtall-airline-16756
10/20/2025, 8:41 PM