3 ms·
I hear https://github.com/google/web-serial-polyfill https://github.com/google/web-serial-polyfill gets used a fair amount on Android devices, so that might be
by nightpool 2y ago
I hear https://github.com/google/web-serial-polyfill https://github.com/google/web-serial-polyfill gets used a fair amount on Android devices, so that might be one road you could go down. Additionally, I can't imagine it would be that hard would it be to build a mobile app that could provide a WebSerial interface to a friendly webview of your choosing. You'd need the user to download an app, but then you could use the same code for both web and app versions.
- scottbez1 2y agoOh interesting, I'll have to try that polyfill - I've been using web serial for all my projects lately because I hate users having to install anything, but Android has been an annoying gap.
- mschuster91 2y ago> but Android has been an annoying gap If I were to guess - the issue is that many phone basebands appear (at least) as a serial device, and we all know from late 90s/early 00s dialer scams how bad that can go if some hardware manufacturer forgets to label the serial port in a way that can be detected as "never fucking ever expose this to apps"...
- kwiens 2y agoVery interesting, I will check that out! And yes, if it seems like mobile browsers don't plan to add support then we'll have to look at wrapping it in a native app. I'm hopeful that smartphones will start supporting higher power output from their USB-C ports. The iPhone does 4.5W right now, which is (barely) enough to melt solder, but not enough to do anything with.