[BUG] emulator sometimes not loading on ios
Make sure you're on the latest stable or beta build
- [x] I have tested this on the latest stable or beta release
Is this a bug in companion itself or a module?
- [x] I believe this to be a bug in companion and not a specific module
Is there an existing issue for this?
- [x] I have searched the existing issues
Describe the bug
I use Safari on iOS 26. The URL I entered is: http://192.168.249.1:8000/emulator/main
When I enter the URL, Companion sometimes fails to load the page. Clearing the cache allows it to function again for a while.
Since Safari allows you to add websites to your home screen as web apps, it would be beneficial if this feature worked properly.
If the error occurs in a web app, the web app must be deleted and reinitialized for it to function again. Clearing the cache is not sufficient in this case.
Steps To Reproduce
- Open emulator page(iPhone)
- Change some stuff
- Page ist not shown anymorge. Even closing / opening the browser doesn't help
- Remove the cache on employers
Expected Behavior
The page is opened. With Chrome it is working
Environment (please complete the following information)
- OS: IOS 26.1
- Browser: Safari
- Companion Version: lastest stable and latest beta, both show this behaivior with safari.
Additional context
See Video.
https://github.com/user-attachments/assets/451a77f1-dddf-4fcd-b946-32677afd7175
Maybe this is the same as what I have been seeing during development, of the websocket sometimes taking a weirdly long time before it gets opened (or attempts to be opened by the looks of the debug logs).
I assumed it was a development/ipv6 thing, but perhaps not
https://github.com/user-attachments/assets/4b65e3b4-7710-4c8d-96c0-107b1caf5b48 I'm also having this bug since updating to the most recent build from 3.5.5. But it's not limited to iOS Safari, it appears to be a Safari-specific problem on macOS as well. Chrome on iOS and MacOS work fine. Might be a webkit/Safari-specific issue.
I am also having this problem regularly in the last month either from iOS updates or Companion updates. Everything was working fine before. Now it takes a long time to load emulators.
I have encountered this issue as well. When trying to open companion from a home screen bookmark it loads for a while and eventually gives me a “WebSocket Closed” error.
I have had the emulator added to the home screen through Safari for a few years now and haven’t had any issues until now. I am able to go to the emulator if I type it into a webpage directly, but I cannot access it from my home screen bookmark. I can’t say for sure, but if I had to guess, I believe it would’ve been updating to the new iOS 26. Because I haven’t updated my companion until just now (4.1.0—>4.2.1) to try and resolve this issue.
One thing that I find interesting is that some people above can’t access it at all, where I only can’t access it from my home screen bookmark. This goes for both my iPad and my iPhone. If I were to type it in directly or to open the emulator from the main dashboard, no matter what browser, I don’t have any issues.