Skip to content

Overriding iceTransportPolicy: 'relay' still triggers iOS Local Network Access prompt in React Native LiveKitRoom #289

@CoryDuan

Description

@CoryDuan

Describe the bug

When using LiveKitRoom in React Native and passing connectOptions={{ rtcConfig: { iceTransportPolicy: 'relay' } }}, the iOS app still prompts the user for Local Network Access. This happens even though relay-only should avoid usage of local (host) or reflexive candidates.

To Reproduce

  1. Wrap LiveKitRoom with props including:

connectOptions={{
rtcConfig: { iceTransportPolicy: 'relay' }
}}

  1. Launch TestFlight build on a real iOS device

  2. Observe the “Would Like to Find and Connect to Devices on Your Local Network” prompt

  3. reject the prompt and connection fails

Expected behavior

The prompt should not appear, because relay-only mode should avoid any local network candidate usage.

If the OS still requires the permission (because of internal probing), the SDK should provide a clear fallback or error message explaining why the prompt is needed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions