In the APP i'm currently working on, I need to provide user with a way to open HTML file. I'm using SFSafariViewController
for that purpose. However, it is also required that user need to be able to view HTML file in incognito mode.
I did some research and find out that user can click on 'safari' icon in SFSafariViewController
to open a certain HTML file in Safari APP. Then user can use private browsing mode of Safari as he/she always does.
However, I'm trying to figure out any way for user to use incognito or private browsing mode in SFSafariViewController
?
If not, is there any alternative to SFSafariViewController
which can achieve that?
You do not have any control over
SFSafariViewController
in terms of customization. Read Further for more information regarding the different ways of opening a web-page within an app.I would suggest you to use
UIWebView
if you are supporting iOS versions below 8.0 andWKWebView
for versions overs 8.0.Hope this helps.