My livekit react-native implementation works corre...
# sdk-native
l
My livekit react-native implementation works correctly on iOS. On Android I get these strange errors:
Copy code
ERROR  websocket error {"error": {"isTrusted": false, "message": "Connection reset"}, "pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}
 WARN  websocket closed {"code": 1006, "pID": "PA_itHabypTRqeM", "participant": "Artur", "reason": "Connection reset", "room": "Ff", "roomID": "RM_ydQycbpeNjoa", "state": 1, "wasClean": undefined}
 WARN  signal disconnected {"pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}
 INFO  resuming signal connection, attempt 0 {"pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}
 INFO  Resuming signal connection {"pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}

then I think it tries to reconnect but then:

 INFO  disconnect from room {"pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}
 WARN  abort connection attempt {"pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}
 WARN  abort transport connection {"pID": "PA_itHabypTRqeM", "participant": "Artur", "room": "Ff", "roomID": "RM_ydQycbpeNjoa"}
 WARN  [ConnectionError: Client initiated disconnect]
and then
Did anyone find a similar error? In the web livekit instance I see the user is "connecting" for few seconds, but the screen stays black. The same exact code works for iOS and connects correctly
r
The connection reset error (code 1006) typically indicates an abrupt WebSocket closure without a proper close handshake, which is common on Android when the underlying WebRTC connection isn't properly configured. The fact that iOS works correctly suggests this is specifically an Android configuration issue rather than a server-side problem. The reconnection logic you see in the logs is the SDK's built-in retry mechanism, but it fails because the underlying Android setup prevents stable WebSocket connections. Did you follow the steps here: https://github.com/livekit/client-sdk-react-native/blob/main/README.md#android and https://github.com/livekit/client-sdk-react-native/blob/main/README.md#android-3
l
I am using expo configuration plugin, so that should be managed by me, right? Still I modified Application.kt and I seem to be getting different error, "could not establish pc connection" I tried to connect to livekit sandbox and it works correctly, streaming video etc. So it might be a problem with our server installation right?
Thank you!
https://livekit.io/connection-test returns 2 warnings:
Copy code
Warning: Server is not configured for ICE/TCP
Can connect via TURN
Warning: No TURN servers configured.
Can publish audio