Instance Method


Handle messages sent by the tunnel provider extension’s containing app


func handleAppMessage(_ messageData: Data, completionHandler: ((Data?) -> Void)? = nil)



The message data sent by the tunnel provider extension’s containing app.


A block to be executed by the Tunnel Provider when it is finished handling the message. It may be nil, in which case the containing app does not expect a reply. The provider can send information back to the containing app via the responseData parameter.


Use this method to communicate information between the Tunnel Provider and the Tunnel Provider’s containing app.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software