Is there a trick to getting the NETestAppMapping info.plist dictionary to work with a com.apple.vpn.managed.applayer profile?

I am trying to develp my own per-app vpn using NEAppProxyProvider and I seem to have hit a deadend. While using the "non MDM" way of gluing apps to the NetworkExtension, I am clearly failing at getting the config correct. I installed a per-app VPN profile onto the device by adding the extra fields needed, but when I run the container app, it appears like the NETestAppMapping info.plist item is ignored. I have the array key set to the same value as the VPNUUID in the profile, but there is no "INCLUDED APPS" section displaying in the VPN screen of the "PER-APP-VPN" profile.


fwiw, i do have the NetworkExtension entitlements in place.


Answered by papadowns in 37228022

figured it out.


the VPNSubType field in my per-app VPN profile needed to be set to the bundle identifier of the container app.

Accepted Answer

figured it out.


the VPNSubType field in my per-app VPN profile needed to be set to the bundle identifier of the container app.

can you please share code snippet to read apps defined in key NETestAppMapping ? in my app i want to show the app list in app UI

Is there a trick to getting the NETestAppMapping info.plist dictionary to work with a com.apple.vpn.managed.applayer profile?
 
 
Q