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
2
votes
1 answer

How to read Cookies from iOS Safari app using SFSafariViewController

I need to read cookies from Safari app to inside the my application. So is there any way to do it by using any SFSafariViewController inside the our application. Please help me on it. Thanks in advance. Edited I have a one URL…
Ganesh G
  • 1,991
  • 1
  • 24
  • 37
2
votes
0 answers

How to use the SFSafariViewController and use your own http proxy?

in my app, I use uiwebview to load "account.google.com" and I use to nsprotocol integration to implement http proxy,but Now I must use SFSafariViewController to load google(no longer allow OAuth requests to Google in embedded browsers), still want…
2
votes
0 answers

Features in Mobile Safari/Safari View Controller that are not available in WKWebView or UIWebView

I'm trying to build a reliable engine on iOS to detect if a page is opened inside Mobile Safari/Safari View Controller (SFVC) or a WebView (WKWebView or UIWebView). The main method I found is using the User Agent, which is not reliable, e.g.…
2
votes
1 answer

How to change tint of navigation bar in SafariViewController when setting UIButton appearance in AppDelegate

I am trying to change the tint of the navigation bar in a SFSafariViewController when UIButton.appearance() is being set in the AppDelegate. For example: AppDelegate func application(_ application: UIApplication, didFinishLaunchingWithOptions…
Amelia
  • 185
  • 2
  • 9
2
votes
0 answers

iOS WebView - Open link in SFSafariViewController

So I am trying to detect a link click within a webView and then present this url in the new SFSafariViewController however am having some issues. Anyone got any ideas? This is what I am currently doing: import UIKit import SafariServices class…
dwinnbrown
  • 3,789
  • 9
  • 35
  • 60
2
votes
0 answers

Is there a way to have Safari View Controller embedded in a navigation controller but still have Safari View Controller's navigation gestures?

I want to push Safari View Controller onto my UINavigationController but when I do, the "go back"/"go forward" slide gestures in the browser are disabled, which doesn't happen when it's presented modally. Is there a way to push it onto the…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
2
votes
2 answers

Can SFSafariViewController load a POST request?

I would like to load a POST request using SFSafariViewController, just like webView.loadRequest(request). But I find init(url:entersReaderIfAvailable:) accepts NSURL only. Is it possible to do POST?
yzyzsun
  • 367
  • 4
  • 11
2
votes
1 answer

SFSafariViewController NOT fullscreen / content presented on top

I'm making a very simple app for a demo and am trying to present a webpage using SFSafariViewController (I need to use SF versus WKWebView so to be able to access cookies). I would really like to present the User with some UI buttons, but I've been…
Dan
  • 4,197
  • 6
  • 34
  • 52
2
votes
1 answer

Make SFSafariViewController rotate with device to match orientation

I am creating an instance of an SFSafariViewController from within a tableVC. When the SafariVC is open, the orientation of it does not change (portrait to landscape, vice versa) when the device is rotated. Is there a quick fix to this? I tried to…
pennyloaf
  • 90
  • 7
2
votes
2 answers

Force SFSafariViewController to load the desktop version of a website

As the title suggests, I was wondering if there is a way to force SFSafariViewController to load the desktop version of a website. Thanks
Antonio Giarrusso
  • 810
  • 1
  • 9
  • 19
2
votes
1 answer

SFSafariViewController requesting to Open YouTube App when YouTube is installed

I have an iOS 9 only app which I am developing with a UITableViewController and a list of videos by a company. Some of the videos are hosted on YouTube. In the didSelectRowAtIndexPath, I implement the use of SFSafariViewController in the following…
amitsbajaj
  • 1,304
  • 1
  • 24
  • 59
2
votes
0 answers

Customise the text in the UIActivityViewController when using SFSafariViewController

I have a simple application that loads web pages within the app where on iOS 8, I am using a custom UIWebViewController called VideoWebViewController and for iOS 9, I'm using SFSafariViewController. Within the VideoWebViewController, I have the…
2
votes
0 answers

When do extensions included as part of your app show inside an SFSafariViewController UIActivityViewController?

I have two extensions included with my app bundle - an action extension and a share extension. Both of these look for either a URL or a web page as the activation key. Inside of my app, when an SFSafariViewController is presented and the user…
Jason Renaldo
  • 2,802
  • 3
  • 37
  • 48
1
vote
0 answers

Fixing reposition of Done when rotating in SFSafariViewController

I am fairly new to iOS and am a bit stuck on this issue. The problem is that when I rotate the device from landscape to portrait in SFSafariViewcontroller the DONE button gets pushed up. See image here: I thought about maybe recalculating the…
Nilo
  • 41
  • 4
1
vote
0 answers

How to support WebAuthn in WKWebViews or on PWA based IOS app

I am using webauthn for biometric authentication like fingerprint scan in my pwa. Now to publish it on IOS as an app I have used pwabuilder.com to get an ios package, which packages pwa to load it in wkwebview so that it can run on ios as native…