I'm subclassing NEPacketTunnelProvider and need to know how to alert the user of error conditions. Sometimes the error is the user's fault (like wrong credentials), so it's important we tell them what went wrong so they can fix it.
I'm not sure of the correct way to do this. It seems dirty and probably impossible to show something like a UIAlertView directly, not to mention it's deprecated.
Documentation states that we should call -[NEPacketTunnelProvider cancelTunnelWithError:], which I am doing, but it does not provide any feedback to the user. Neither does passing an error object to the completion handler of -[NEPacketTunnelProvider startTunnelWithOptions:completionHandler:].
What is the correct way to display an error to the user in this case?