Questions tagged [sfsafariviewcontroller]

Controller which allow you to present web content within the app.

The new SFSafariViewController class enables you to deliver interactive web content in your app just like Safari, including the key Safari UI elements already familiar to your users. See how to easily bring Safari features like Reader and AutoFill into your app, and provide a great web viewing experience with fewer lines of code.

309 questions
6
votes
1 answer

How can SFSafariViewController be setup as the Detail Controller for UISplitViewController?

It seems from the documentation and all examples that I have found that a SFSafariViewController must be programmatically instantiated with a specific URL as a setup parameter. Is it possible to use a SFSafariViewController as the Detail Controller…
6
votes
2 answers

How to change the background color of a SFSafariViewController?

I understand that the code below changes the SFSafariViewController's tint color, but how do you change the background color of the navbar and tabBar? SFSafariViewController *safariViewController = [[SFSafariViewController alloc]…
Adam Cooper
  • 867
  • 1
  • 6
  • 23
5
votes
2 answers

Android equivalent of iOS' SFSafariViewController

On iOS, there are 3 ways to display web content (as I was told by a iOS dev): a UIWebView displayed inside a UIControllerView if I am correct a SFSafariViewController as a UIControllerView Safari, the app itself on Android, as far as I am…
Mackovich
  • 3,319
  • 6
  • 35
  • 73
5
votes
0 answers

ASWebAuthenticationSession only shows Cancel button

I am authenticating our web service using ASWebAuthenticationSession and for some reason the only option after the final redirect is Cancel. I had this working before where even if I did press Cancel, the callback Url was sent through the completion…
5
votes
1 answer

Set the request Authorization header in SFSafariViewController

I have application that have username and password, so that user logs to the app. Some (less important) functionality is still as web page. But to be user friendly, it is annoying for user to login again after already logging in. I am looking at…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
5
votes
2 answers

specify SFSafariViewController user agent

I have an issue specifying access from SFSafariViewController since it has the exact same user agent as Safari browser. What i'm trying to do is display a picture only inside the webview and remove it if its viewed on normal browser. Tried to see if…
5
votes
1 answer

Hide share options in Safari View Controller

Is there any way to hide the share option in Safari View Controller, which is coming by default?. I am trying to hide the extra options which are given by default with the Safari View Controller but not able to do so. Let me know if anybody knows…
Sachin Nautiyal
  • 568
  • 4
  • 15
5
votes
0 answers

SFSafariViewController and location

I have implemented SFSafariViewcontroller in an app. It displays a website that shows a map, like Google Maps. If I open Google Maps in the ordinary Safari app, it will show an alert saying "Google Maps wants to user your location"…
Mathijs
  • 1,258
  • 1
  • 10
  • 27
5
votes
1 answer

How to achieve Incognito Mode in SFSafariViewController

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…
Todanley
  • 468
  • 3
  • 12
5
votes
4 answers

WKWebView http -> https redirection for iOS 10 ATS Compliance

iOS 10 has foisted https upon us and totally broken an application I'm developing. The application is partly an RSS reader. The URLs we get from the RSS feeds are often HTTP URLs, both for the sites, and the metadata images. These HTTP URLs are…
5
votes
0 answers

Show Print activity button for print using SFSafariviewController

In sfsafariviewcontroller screen, share button is only showing default activity options that doesn't have print option, but i want to show only print activity option. there is delegate method to return activity. i want to return UIPrintActivity…
Saood
  • 273
  • 1
  • 3
  • 17
5
votes
1 answer

Handle popups/tabs in SFSafariViewController

I'm implementing a SoundCloud login flow in my app. The app opens https://soundcloud.com/connect in an SFSafariViewController with a redirect_uri that uses my app's custom URL scheme to receive the response. It works fine for direct SoundCloud…
Jayson
  • 1,689
  • 14
  • 26
5
votes
0 answers

Using browser location inside of SFSafariViewController

I have a webpage that uses location data from the browser that I want to open up inside an ios application. If I open this page up inside a UIWebview I will see the page ask for location and after I respond the page finishes loading. However, when…
werdna357
  • 53
  • 4
5
votes
0 answers

GoogleSignIn iOS - Disable SFSafariViewController

I'm developing an enterprise application for one of our clients that utilises the GoogleSignIn SDK an a login option. During development, I was surprised to see that support for the SFSafariViewController had been added meaning that I could…
liamnichols
  • 12,419
  • 2
  • 43
  • 62
5
votes
1 answer

Open safari view controller from table view on iOS 9 and open in safari on iOS 8 or 7

Hi I would like to open my website from my table view cell in the safari view controller if the user is on iOS 9 or above. If the user is on iOS 7 or 8 the website should open up in the standard safari app. This is the code I currently use which…