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
83
votes
6 answers

What does Unrestricted Web Access mean in iTunes Connect

When you are submitting your app to Apple app store, there is a section named "Rating" where you should rate your content based on the chart and identify how frequently the content appears. There is one option called "Unrestricted web access" which…
45
votes
4 answers

In iOS 9, why is SFSafariViewController is being pushed instead of presented modally?

I'm presenting a SFSafariViewController by calling presentViewController:animated:completion: on a UIViewController instance. The result is that it gets pushed on (slides in from the right), as if I called pushViewController:animated: on a…
abc123
  • 8,043
  • 7
  • 49
  • 80
30
votes
4 answers

Could not signal service com.apple.WebKit.WebContent

I use the Shopify Mobile Buy SDK for iOS and I can't get a callback from their payment web view. For some reason the warnings: 2016-11-25 21:17:25.945267 Drool[3328:799969] Could not signal service com.apple.WebKit.WebContent: 113: Could not find…
Martin Kjellberg
  • 615
  • 1
  • 6
  • 22
27
votes
2 answers

SafariViewController: How to grab OAuth token from URL?

Trying to use Facebook OAuth with the SafariViewController. First I open the authURL with SafariViewController, which if the user is logged in to Facebook on Safari, will redirect them and return an OAuth URL with the token for that specific…
Brien Crean
  • 2,599
  • 5
  • 21
  • 46
25
votes
5 answers

SFSafariViewController crash: The specified URL has an unsupported scheme

My code: if let url = NSURL(string: "www.google.com") { let safariViewController = SFSafariViewController(URL: url) safariViewController.view.tintColor = UIColor.primaryOrangeColor() presentViewController(safariViewController, animated:…
Sahil Kapoor
  • 11,183
  • 13
  • 64
  • 87
23
votes
2 answers

When can I use a SFSafariViewController, WKWebView, or UIWebView with universal links?

In the Universal Links section of the iOS App Search Programming Guide, Apple says: If you instantiate a SFSafariViewController, WKWebView, or UIWebView object to handle a universal link, iOS opens your website in Safari instead of opening your…
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
22
votes
1 answer

Is it possible to provide custom headers to the Safari View Controller

Is it possible to provide custom headers to the safari view controller. I would like to pass an API key or authentication token with my request, and I cannot place it in the query string.
sylvanaar
  • 8,096
  • 37
  • 59
20
votes
5 answers

Can I preload the web content for Safari View Controller?

I can create Safari View Controller without problem: let svc = SFSafariViewController(URL: NSURL(string: remote_url)!, entersReaderIfAvailable: true) self.presentViewController(svc, animated: true, completion: nil) Is there any way I can…
Joe Huang
  • 6,296
  • 7
  • 48
  • 81
17
votes
1 answer

AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID

xCode 11.6, iOS 11.4, Objective C app. Launching a SFSafariViewController from a UIViewController. My UIViewController is the delegate of the SFSafariViewController. NSString *sURL = [dctData objectForKey:@"URL"]; NSURL *URL = [NSURL…
Jim Peters
  • 281
  • 3
  • 8
16
votes
1 answer

Turn Off Translucent Bars on SFSafariViewController

In iOS 10, Apple added the property PreferredBarTintColor to set the color of the NavigationBar at the top and TabBar at the bottom to match the color of your app. Which is great, except that the bars have translucency turned on, which I prefer to…
Wiley Page
  • 161
  • 4
16
votes
1 answer

How to detect if your site is loaded on SFSafariViewController

How can you tell using javascript if your site is being loaded in an SFSafariViewController, and not pure Safari? I looked at window.navigator.userAgent, but it outputs the same thing on both browsers.
petranaya
  • 769
  • 1
  • 6
  • 23
15
votes
3 answers

Safari View Controller uses wrong status bar color

My app uses a dark navigation bar color. Therefore I set the status bar color to white (so it has a nice contrast). I did this by setting the barStyle to black (to make the status bar white) and also setting the barTint to my dark red color. Works…
14
votes
2 answers

How to hide the done button and search bar in SafariViewController

I'm using SafariViewControllerto display a webpage, and rather than the default "done" button I push from my app's NavigationController to preserve my nav stack and back arrow. However, I need to hide the default Done button and search bar on the…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
13
votes
2 answers

SFSafariViewController cookies

I understand that as of iOS9 you should be able to read cookies with SFSafariViewController. If I set a cookie on my page in JS using the following: var dd = new Date(Date.now() + 1000 * 60 * 60 * 24).toGMTString(); var expires = "expires="+…
13
votes
4 answers

How to change SFSafariViewController ToolBar color

Expected Output: I want to change the ToolBar color to Dark Black. Actual Output: ToolBar is light Grey color. Here is the code: let webViewController = SFSafariViewController(URL: url, entersReaderIfAvailable:…
1
2 3
20 21