Hi,
I developed a network extension (packet-tunnel) to implement per-app vpn. And it works well now.
The "OnDemandMatchAppEnabled" is enabled, and the managed app can start the vpn on-demand.
But how can I stop the network extension if I closed the managed app?
It seems that the packet tunnel will be always running since the on-demand start.
I have the similar question but could not find any answer.
E.g. I'd like to use per-app vpn and setup apprules as appRules = ( { matchSigningIdentifier = com.apple.mobilesafari matchDomains = ( google.com, ) },
Question: 1. Do I need to setup onDemandEnabled = YES to make sure appRules is working? 2. How to make sure if I close the safari, the vpn is disabled? i.e. Traffic from other apps won't go through VPN?
Thanks, Yanhua