Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the main advantage of using SFSafariViewController?

I am not getting proper understanding of what is the main adavantage of using SFSafariViewController, if we are using [[UIApplication sharedApplication] openUrl: strUrl];

What are the difference between both?

like image 771
Gourav Joshi Avatar asked Jan 09 '17 05:01

Gourav Joshi


People also ask

Does SFSafariViewController share cookies with Safari?

SFSafariViewController no longer shares cookies with the standalone Safari browser. Thus, a website can no longer determine that the user on SFSafariViewController is the same user on Safari, even though the view controller and the browser are open on the same device.

What is the difference between UIWebView and WKWebView?

Unlike UIWebView, which does not support server authentication challenges, WKWebView does. In practical terms, this means that when using WKWebView, you can enter site credentials for password-protected websites.

Is WKWebView the same as Safari?

WKWebView. WKWebView was introduced in iOS 8 allowing app developers to implement a web browsing interface similar to that of mobile Safari. This is due, in part, to the fact that WKWebView uses the Nitro Javascript engine, the same engine used by mobile Safari.


1 Answers

With SFSafariViewController, you can use nearly all of the benefits of viewing web content inside Safari without forcing users to leave your app.

The majority of apps just need to provide a generalized web viewing experience. This is the perfect scenario for the safari view controller.

Before SFSafariViewController, the browsing experience was inconsistent across different apps, which may confuse the user. Some interfaces may also lack the things users expect, such as a progress bar indicating how much of the page is loaded. You don't have access to all of Safari's features. This includes the reader view, the iCloud keychain for autofill capabilities, and more.

If you wanted to have those features before iOS 9, you were forced to have the user leave your app entirely by opening the content inside Safari. SFSafariViewController solves every one of these problems.

For more see here

like image 170
soumil Avatar answered Sep 17 '22 17:09

soumil