macOS App not triggering Per-App VPN Connection

Hi,


I have tested Per-App VPN configuration profile with Google Chrome and other apps with an MDM profile.


These work as expected. Sites accessible only through the VPN are accessible from these apps.


I built my own app and signed it with Developer ID and added it to the MDM profile with the app bundle ID and designated requirements as output from codesign.


My own built app does not trigger the VPN connection to the same network resources that work through the Per-App VPN with Google Chrome.


What am I missing in my own app? Some sort of extra entitlements?


My app is built with Xcode 10 on Mojave and tested on Mojave.


To test/trigger the network access, I am just using URLSession.shared.dataTask for a URL inside the VPN's network.


Error is "A server with the specified hostname could not be found." And my Per-App Tunnel remains disconnected.


Thanks,


Kyle