I work with VPN on iOS using the NetworkExtension infrastructure. I can install the configuration and establish the connection. My question is, is there a way to determine if the VPN configuration is installed, or is it detected if the user has not installed the configuration?
I'm not necessarily looking for a notification or something in the background, but what am I looking for is the method / workaround that I do when the application comes to the fore?
I use certificate authentication with a certificate issued by an intermediate CA, and tried the "trust assessment" method from here: Check if the configuration profile is installed on iOS
This did not work for me. They always trust me. I also tried this:
if([NEVPNManager sharedManager].protocol){
}else{
}
But that doesn't work either. After removal, the protocol remains valid. If I leave and restart the application, the protocol will be invalid.
Any suggestions are welcome.
source
share