mozilla-mobile / webxr-ios

An iOS app for testing WebXR
Mozilla Public License 2.0
211 stars 42 forks source link

Upgrade for ios 14 and more: ask permission for local network access #189

Open smorel opened 3 years ago

smorel commented 3 years ago

We cannot run WebXR app that runs on a local server as the app do not ask permission for accessing local network.

https://support.apple.com/en-mk/HT211870

camjackson commented 2 years ago

Is this why I can't load e.g. https://192.168.1.10:3000 using the WebXR viewer app?

I can successfully load that URL in firefox on iOS, but obviously that's just re-skinned safari so I can't load the XR content with that.

I can load other XR sites using the viewer app, it seems to be just local network sites that don't load.

camjackson commented 2 years ago

Just opened a PR for this but I have no idea if anyone is watching this repo any more. Let's see 🙂

camjackson commented 2 years ago

This actually seems to work if you just don't make the connection secure. Try it on HTTP instead of HTTPS. As long as it's a local address, webxr seems to run just fine in the newer version of the xr viewer app.

jaeh commented 2 years ago

webxr viewer does not support self signed certificates (or only older protocols, idk). we had this wonderful setup with a local server and api, that was using self-signed certs, webxr viewer was the only browser refusing to connect, safari, firefox, chrome, they all did. we then hosted the api on our public page instead and paid the cost of the network trip, but for on location video streaming and other latency dependent workloads this is a problem.