Is there any info if it’s possible to work with a local network?
I know It would work for desktop. problem Is on mobile and SSL certificates, right ?
Any way to create a local server generating those ?
Example: I have a AR experience for a trade show and there´s no internet/4g.
I can offer wifi and share the experience locally?
Yes, Manuel, it is possible to work with Needle Engine on a local network without internet access. Here is how you can set up and manage your AR experience for a local environment:
Local Development Environment:
You can run a local development server using Needle Engine to host your AR experience. Tools like the LiveServer extension in Visual Studio Code allow you to quickly spin up a local server for testing (see index).
Local Networking:
You can set up a local networking server using the Needle Engine networking package. This allows multiple devices to connect to the AR experience hosted on a local server, even without internet (see networking).
SSL Certificates:
Working with AR experiences often requires SSL due to restrictions of web APIs like WebXR. You can generate self-signed certificates and install them on your mobile devices. This is critical for avoiding security warnings and ensuring all features work properly on mobile browsers (see testing).
Local Network Access:
The server you set up can be accessed by other devices (smartphones, tablets) in the same local network using the IP address of the server machine. Use HTTPS with a self-signed certificate for full feature support (see testing).
Practical Considerations:
Ensure your AR experience is bundled as a PWA (Progressive Web App) to provide offline access and optimal caching, benefiting from features like installability on mobile devices (see html).
Testing and Deployment:
Test thoroughly on local devices to ensure smooth operation. Follow guides for setting up SSL certificates specifically for your operating system and device types to reduce friction for users accessing the AR experience at trade shows (see testing).
By following these steps, you can successfully run an AR experience locally, suitable for environments without internet access, such as trade shows.
24 replies left thread_XZmvOtaOctd6BP2SLXiwBWcb Reply to this message to continue the conversation
I think the question is more about hosting a local server on a tradeshow and serving an app from the local Wifi, is that correct?
If so: yeah, the main challenge is the certificate; a self-signed one will show a warning message so that’s not great.
But I believe if you run a local DNS, you can use a proper certificate (e.g. from LetsEncrypt) and serve assets from “https://my-server-that-has-a-certificate.com” locally as well. Plus, you might be able to use a Wifi Captive portal so that as soon as people get into your Wifi they’re sent to your special page (saving one step – some routers have that functionality built-in).
Yes, exactly my idea too. This could be a nice feature to add a local DNS straight from the node server needle uses, so you can test your project on mobile devices.
Not sure if you mean something else, but this is already part of the default setup – the URL that’s opened in the browser can be directly accessed from mobile devices. That’s how we usually work with phones, Quest, etc., all straight from the dev server.
It works great for development, but it doesn’t really help with public installations as the root cert needs to be installed on the devices, which is by design for root certificates.
I do lots of Needle builds which we show at trade shows, usually we use something on windows or mac like Simple Web Server or VS Code with the Live Server extension