DataChannel never opening on initiator (react-native iOS)
See original GitHub issueHi there.
I’ve been dealing with a WebRTC issue on a connection between an iOS device (the initiator) and desktop browser. The connection seems to hang, never establishing the connection or encountering any errors. The same code connecting an Android device (it’s written in React Native) with a desktop browser works fine.
After looking further into what’s happening, I’ve seen that the created data channel [0] never receives the open
event, thus never running the onopen
listener [1]. This results in the channel’s ready state not being set, causing _maybeReady
calls to always return early.
Underneath we’re using the react-native-webrtc
WebRTC implementation.
My question is if anyone has encountered anything similar, or if anyone knows what would perhaps cause the data channel to never open? Is there any more info I could provide to assist with working out what’s happening? The fact that the same code is running fine on Android is still a puzzle
[0]: https://github.com/feross/simple-peer/blob/18ea34e954d7029944f608bcc3f206bf4f39d6de/index.js#L135-L137 [1]: https://github.com/feross/simple-peer/blob/18ea34e954d7029944f608bcc3f206bf4f39d6de/index.js#L939-L944
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Simple-peer should work in any evergreen browser, including iOS I believe, except for the features browser physically doesn’t support yet (those checks can be found in
test
directory).Closing as there’s no issue in
simple-peer
here!