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
1
vote
1 answer

SFSafariViewController details

Here I am, using SFSafariViewController for the first time. Before I would open Safari directly or use WKWebView, as everyone else I suppose. Following some sample code I found on the web, here is a working function I wrote: func openTheLink(_…
Michel
  • 10,303
  • 17
  • 82
  • 179
1
vote
3 answers

SFSafariViewController init method forced to use iOS11 supported version

With the recent update on Xcode 9 Beta and iOS11 preview, there are some changes to SFSafariViewController init methods. @available(iOS 11.0, *) public init(url URL: URL, configuration: SFSafariViewController.Configuration) @available(iOS,…
John Kuan
  • 116
  • 2
  • 11
1
vote
1 answer

SFSafariViewController Done button not working / touch area too small

I am presenting a link in SFSafariViewController as follows: SFSafariViewController *sfvc = [[SFSafariViewController alloc] initWithURL:myurl]; sfvc.preferredControlTintColor=[UIColor blackColor]; sfvc.delegate = self; [self.navigationController…
1
vote
1 answer

How can I create an iOS web browser that proxies all traffic through a proxy server?

I'm looking to create an iOS app that implements a standard Safari-like web browser which proxies all of its traffic through a proxy server. Specifically, it must use its own a proxy configuration so that only its traffic is directed through the…
Bri Bri
  • 2,169
  • 3
  • 19
  • 44
1
vote
1 answer

How does Google SignIn SDK (OAuth) redirect back to iOS app?

I press Sign In. It opens SFSafariViewController, does the login and then comes back to the app after. Does it call the redirect URI like myapp:// at the end, because I setup the client ID? Or is there a window.close javascript happening somewhere?
esh
  • 2,842
  • 5
  • 23
  • 39
1
vote
1 answer

Safari ViewController with enabled address bar

I'm using Safari ViewController and address bar is disabled. How can I make it enabled so user can enter other url? Here is the code that I'm using class ViewController: UIViewController, SFSafariViewControllerDelegate { override func…
1
vote
1 answer

Download documents with SFSafariViewController

Isn't SFSafariViewController able to download documents? I'm trying to do this, but the "Save to" dialog doesn't appear. From the same page opened in native Safari it opens. My implementation is basic: let svc = SFSafariViewController(URL:…
trusk
  • 1,634
  • 2
  • 18
  • 32
1
vote
0 answers

SFSafariViewController not loading when not visible

I'm trying to use a SFSafariViewController in the background to interact with cookies from a website. It seems that the pages is not loaded when the controller is not visible. Is that how it should be? What ways do I have to fix except than making…
Guig
  • 9,891
  • 7
  • 64
  • 126
1
vote
0 answers

iOS Deep Links Flow & Navigation Problems

I have an app that launches a branded web page with Stripe integration to process credit card charges. We have to do this on a separate web page vs in-app for reasons that don't matter to this question. I am using deep links via setting a URL…
C6Silver
  • 3,127
  • 2
  • 21
  • 49
1
vote
0 answers

Safariviewcontroller reloads content when open another app then return

I am trying to implement an SSO scenario with using sfsafariviewcontroller. The scenario is below. The user opens the app, and the login page displays in wkwebview. User clicks login button then safariviewcontroller opens the SSO page. The user…
1
vote
2 answers

SFSafariViewController : Overlay is not appearing sometimes

I am using SFSafariViewController, and as i did not wanted to show the status bar of safari and i have hidden it by adding a overlay. I have my own button on the overlay and its working fine. The safari status bar is hidden and it shows my overlay…
Richa Srivastava
  • 482
  • 1
  • 7
  • 24
1
vote
0 answers

iOS 10 UIWebView not opening links on web page

I'm displaying a web page in a UIWebView inside an app. There are links in the UIWebView which are no longer clickable as of iOS 10. Some elements of the page I can interact with, but others I cannot so I don't know if its a java script issue or…
MobileMon
  • 8,341
  • 5
  • 56
  • 75
1
vote
1 answer

sfsafariviewcontroller overlay with home button not working

I am using SFSafariViewController to show webpage as I require cookies to work. I don't want the safari search bar so I have a overlay to hide it and some buttons to perform some task. I do want the functionality of done button though. As we have…
Richa Srivastava
  • 482
  • 1
  • 7
  • 24
1
vote
1 answer

FBSDK Login - SFSafariViewController is disabled?

I've had an issue on my app overnight that I thought was a coding bug. The issue is that the SFSafariViewController login window (Safari based) - is no longer being presented. Instead, it is launching a new Safari app, and once I log in, I now get…
1
vote
0 answers

SafariViewController in Guided Access Mode is not working

I am using SafariViewController to open a webpage. It works fine. But due to client requirement, this app need to be in Guided Access Mode. When i put app into Guided Access Mode, then Webpage is not displayed and i am getting below mentioned error…
Nitya
  • 449
  • 1
  • 8
  • 24