Service Discovery to dynamically set server location
I’m using capacitor to build what is essentially a PWA with service discovery to identify the server. The server delivers to the client a couple requisite items to run, such as icons and other things. The service discovery is working correctly as I can see the correct ip in the logs. The app works as expected when I set the server url in the capacitor config json, but when I either remove the server parameter, or try to set a list of acceptable hosts, the app no longer works. In the first case, it is because any of the http:// are replaced by capacitor://. In the second case, I am not sure the problem.