I am working on an iOS app that fetches the OVPN profile from a server securely, but it needs to be transferred to the Connect app reliably.
Currently I do this:
Code: Select all
self.currentDocumentInteractionController = UIDocumentInteractionController(url: urlToLocallyStoredProfile)
if let currentViewController = self.navigationController.visibleViewController {
self.currentDocumentInteractionController?.presentOpenInMenu(from: currentViewController.view.frame, in: currentViewController.view, animated: true)
}