Notification to user After Phone restart VPN App

I am working on a VPN app that is working fine. but I want to implement a feature

"When User restart the phone I want the VPN to connect automatically or there should be notified to the user saying you are not connected to VPN"

When User restart the phone I want the VPN to connect automatically

I can help with this request; for this you will want to take a look at using OnDemandRules, and apply them to the NETunnelProviderManager or the NEVPNManager, whichever is your case. In this case you can define a NEOnDemandRuleConnect for properties like ssidMatch, interfaceTypeMatch, and dnsSearchDomainMatch.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Notification to user After Phone restart VPN App
 
 
Q