I have an app with VPN config created by the new NetworkExtension framework. It works just fine, but now I need to add some rules to turn this VPN only when I\'m trying to conne
You need to add the line
manager.onDemandEnabled = true