iosfile-sharinguidocumentinteractioncontroller

How I can open document at URL securely from my iOS app?


I need to open a document (it can be pdf, doc, html or other format) at some URL in my iOS app. What is most difficult is that access to the URL has to be authenticated, so I can't just open it in Safari. Also I must not store unencrypted files locally, because of possible unauthorised access on jailbroken device (it is customer requirement). Consequently I also can't share files using UIDocumentInteractionController or open them with QLPreviewController. Are there other options?


Solution

  • You can present a WKWebView and allows you to pass through cookies so that you don’t have to authenticate every time you open it