Hi!
I'm using an
Intent sent to the OpenVPN Connect App to automatically connect to an OpenVPN server for insecure WiFi connections.
This has been documented in
this Forum and
Stack Overflow among other places.
In general this works just fine.
But it can get very, very annoying if the underlying WiFi is flaky. The problem is that when the Intent is received by the app it brings its UI to the foreground while the connection is established. This is disruptive. Since flaky WiFi causes many reconnection attempts it gets very disruptive. The problem is described on Stack Overflow as well:
This starts the "OpenVPN Connect" app and uses the profilename to do an auto-connect.
If successful the app goes to background by itself.
Is there even a way to do this completely in background ?
It would be really, really great if you could implement an Intent to establish the connection entirely in the background - without showing the UI. Maybe this can be achieved by supporting an optional "extra" (e.g. "net.openvpn.openvpn.NO_UI") which prevents the UI from showing up.
Kai
PS: The disruption is illustrated by this
YouTube clip recorded on my phone.