Hi there,
Wondering if it is possible to call a custom method written in NetworkExtension framework as a response to a button click on a viewcontroller? Here is what I am trying to do:
- Press a button on the viewcontroller (that belongs to a different target) triggering a method call in the NetworkExtension framework.
Thanks for reading!
If this is an app extension, the standard approach is called “app messages”. The app calls
-sendProviderMessage:returnError:responseHandler:
and the message arrives on the provider via
-handleAppMessage:completionHandler:
.
This should also work for a system extension but in that case you have an XPC option as well.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"