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
0 answers

Why instagram page in sfsafariviewcontroller is so big?

Here is my code to auth with Instagram using safariviewcontroller. Everything is okay, but web page in SFVC is too big, why? func doOAuthInstagram(_ serviceParameters: [String:String]){ let oauthswift = OAuth2Swift( …
1
vote
1 answer

Configure browser cache in SFSafariViewController using Swift iOS

In my application I am implementing a feature where for some part I need to open my website using SFSafariViewController. For this I don't want the user to login again in the web application as well, so before I open the SFSafariViewController I…
Niki
  • 1,566
  • 1
  • 19
  • 36
1
vote
1 answer

Will SFSafariViewController always have the same UI elements in the navigation bar and the bottom toolbar?

I have an app that uses a SFSafariViewController. The user clicks on a button and a webview appears inside the app presenting the contents of the site. I'm using XCUITest framework to test the UI. I notice that when the webview appears, the…
leedex
  • 963
  • 8
  • 19
1
vote
0 answers

Redirection URL callback is not working in SFSafariviewcontroller

I'm facing the below issues with WKWebView & SFSafariViewController. Camera interface is showing blank but functionality is working fine with SFSafariViewController Camera itself is not working with the wkwebview. Not able to receive Call backs…
Mallikarjun
  • 191
  • 1
  • 5
1
vote
2 answers

SfSafariViewController and shared cookie storage

SFSafariViewController(SVC) was introduced in iOS 9 and SVC can read cookies from Mobile safari and not from the app and it can write cookies and it can be accessed by Mobile Safari and not mobile app. The above behaviour was same till iOS…
Shiva
  • 545
  • 1
  • 10
  • 41
1
vote
0 answers

multiple apps should handle single authorization using ios using Auth2

I am currently working on SSO using Auth2. For that purpose I have used AuthSwift this pod. My purpose is to provide SSO to the multiple apps. Like when user will logged in "A App" and install "B App" , then for B App it should not ask to login…
ki1234
  • 103
  • 1
  • 10
1
vote
1 answer

SafariViewController in Landscape Mode

i have a ViewController that is only in Portrait mode. It presents a SafariViewController. Is it possible to change the orientation of the SafariViewController to Landscape maintaining the Portrait for the ViewController?
user10692948
1
vote
0 answers

Share REST API session cookies with SFAuthenticationSession or SFSafariViewController

Actually, I'm calling REST API services using NSURLSession and I get the session cookies which provided headers. Now I want to share the same cookies with SFAuthenticationSession or SFSafariViewController and load the web page without login. My…
1
vote
0 answers

Web page cannot access camera in WebView

There is a web page that scans qr codes via a camera. It works beautifully in iphone's safari browser but in a webview or wkwebview it does not. I do not own or control js code, so its hard to tell what it requests. Application itself has all the…
Ivan
  • 1,320
  • 16
  • 26
1
vote
0 answers

How to disable sign in pop-up on SFSafariViewController call on B2C sign in

On launch, my app automatically makes an authorization call to my B2C tenant using openid-appauth and a popup saying "MyApp" Wants to use "b2clogin.com" to Sign-in This allows the app and website to …
bazooka
  • 133
  • 6
1
vote
3 answers

SFSafariViewController title color change

I'm using SFSafariViewController for show website in iphone i want to change color scheme like my app, i want to change color of SFSafariViewController title at top.
Umer Afzal
  • 371
  • 1
  • 2
  • 18
1
vote
1 answer

Pass cookies to WKWebView / SFSafariViewController?

I'm using Alamofire for server access and the server API is using cookies for authentication. Now I would like to open a web view and include the auth cookie from the app in the web view. The API and the URL in the web view is using the same…
Johan Nordberg
  • 3,621
  • 4
  • 33
  • 58
1
vote
1 answer

Xamarin SFSafariViewController DidFinish not called

I'm trying to use SFSafariViewController and this works just gr8. Browser opens and loads my site. The problem is I'm not able to catch the event when user clicks on 'Done' button. I'm implemeting ISFSafariViewControllerDelegate and exporting…
1
vote
1 answer

SFSafariviewcontroller - UIApplication sendEvent not working

I am implementing that app timeout functionality, If user keeping the application in idle for five minutes, the application will get logged out automatically. This concept I did use the UIApplication sendEvent method. But, SFSafariviewcontroller…
1
vote
1 answer

Allow a self signed certificate in the SFSafariViewController

Is it possible to programmatically validate a self signed certificate in SFSafariViewController like in WKWebView with the delegate method ? webView(_:didReceiveAuthenticationChallenge:completionHandler:)
Blazej SLEBODA
  • 8,936
  • 7
  • 53
  • 93