Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to achieve Incognito Mode in SFSafariViewController

Tags:

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?

like image 862
Todanley Avatar asked Jan 06 '17 04:01

Todanley


1 Answers

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 and WKWebView for versions overs 8.0.

Hope this helps.

like image 73
Md. Ibrahim Hassan Avatar answered Oct 10 '22 20:10

Md. Ibrahim Hassan