简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM