I have an Android device connected to a PC via USB.
The Android device is not connected to the network.
Is it possible to communicate between the Android device and a javascript web application running on internet explorer on the PC?
requirements:
We need to avoid installing anything new on the PCs, hunderds of PC are already deployed.
The Android devices are not deployed yet, we are free to add anything.
The WebApp will be running on Internet explorer, as per client's requirements.
I thought about using javascript web sockets on my web app on internet explorer (on PC) to listen to any incoming connection from the device, and then in my android app connect to that port and keeping the connection alive.
Is this possible? Are there other ways to do so?
Related
So I am using navigator.serial in my reactjs PWA to access the COM-Ports and receive information from a external bluetooth GNSS receiver.
This works perfect on any Windows device but fails on any mobile device that are using android/ios.
I found out that the serial API is not implemented on mobile, is there a workaround to this other than the bluetooth web API`? Any other way to listen to COM-Ports on mobile?
I want to connect an HID device to my web app, by USB connection.
The WebUSB API does not suit to me, because the device is an HID device(when using the WebUSB API, after device.open() there are an error: 'Access Denied.').
I wanted to use the WebHID API, but for now, this is not available. (WebHID API)
Does anyone know how to connect the device to the WEB app anyway?
Thanks!
The WebHID API is actually available on all desktop platforms (ChromeOS, Linux, macOS, and Windows) in Chrome 89. See https://developer.chrome.com/articles/hid/#browser-support
Can you share why WebHID is not working for you?
Browsers enforce https when using getUserMedia. I am working on a web app made to be used on a local network rather than actually connecting to the internet so going for a typical TLS cert won't really work. If I use a webview in an iOS app, would getUserMedia work when pointing the view at an IP address serving a website?
I am trying to debug my javascript application while running on iPad Safari using Vorlon.
In the application HTML-code I have implemented the script link:
<script src="http://192.168.1.134:1337/vorlon.js"></script>
The IP is the IP of the Vorlon server, which is on my laptop. Running the app on the laptop - the same as the server is on - results in a new client connection in the Vorlon console. But on the iPad the app does not connect to the Vorlon server.
On my Galaxy Tablet the result is the same, no connection. No matter what browser. Tried Chrome and Firefox on the tablet.
I have checked the firewall on the laptop and made sure the 1337 port is allowed.
The laptop runs Ubuntu 17.04
Timothy was right. But to be a bit more exact: the WLAN router I got from my internet provider has a WLAN interface and four LAN interfaces. It turns out that nodes on the WLAN can not see each other, but they can see the machines connected to my LAN interfaces, like my NAS, my PC and the printer.
So the iPad - connected to the WLAN - is able to connect to the Vorlon-server on my PC and I now can start debugging.
What is the best way, in javascript, to check if my Cordova application is running in device or in my pc browser?