webtorrent / instant.io

🚀 Streaming file transfer over WebTorrent (torrents on the web)
https://instant.io
MIT License
3.42k stars 433 forks source link

instant.io does not work on Android #389

Open jeremyckahn opened 1 year ago

jeremyckahn commented 1 year ago

What version of this package are you using?

The version that is hosted at https://instant.io/, which appears to be 1.0.0.

What operating system, Node.js, and npm version?

OS: Ubuntu 22.04/Android 13 (emulated via Android Studio)

What happened?

Android (Chrome) cannot download files offered by another device (Ubuntu running Firefox, in my case).

What did you expect to happen?

For Android to be able to download the shared file successfully.

Are you willing to submit a pull request to fix this bug?

If I can get to the bottom of the issue, sure! I've spent a good amount of time trying debug this but have been unsuccessful so far, though.


This seems to be a WebTorrent bug that is manifesting in instant.io. I first discovered this issue in https://github.com/jeremyckahn/chitchatter/issues/82, a separate project that uses WebTorrent to transfer files in a very similar way. Both instant.io and Chitchatter fail to transfer files to and from Android devices, and WebTorrent is the common factor between the two of them.

It seems that under Android, a Wire object is never being created, as the 'new wire' debug message is never getting logged.

jeremyckahn commented 1 year ago

It seems that this may be happening in the Android simulator because there are no STUN/TURN servers configured. I don’t have an Android device available to test this issue with.