question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataChannel never opening on initiator (react-native iOS)

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nazar-pccommented, Jan 19, 2020

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).

0reactions
ferosscommented, Nov 2, 2020

Closing as there’s no issue in simple-peer here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebRTC DataChannel not opening on iOS native app
I try to implement data transfer functionality with WebRTC datachannels in iOS(10) app. Currently try to reimplement oficial sample with ...
Read more >
Did I choose the right WebRTC stack?
For a Native application based on Java/Kotlin or ObjC/Swift, the best is to have your own toolchain for compiling and producing your libWebRTC ......
Read more >
react-native-simple-peer - NPM Package Overview - Socket.dev
Start using Socket to analyze react-native-simple-peer and its 5 dependencies to secure your app from supply chain attacks.
Read more >
app uses non-exempt encryption - OSCHINA - 中文开源技术交流社区
It employs React Native JSI making it the fastest storage option for React Native. Simple and lightweight (~ 50K Android/30K iOS) and even...
Read more >
Security Configuration Guide: Protocol Support for Context ... - Cisco
Configuring Cisco IOS Firewall N2H2 URL Filtering 37 ... Resolved IP addresses are never “timed out” and not automatically removed from the DNS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found