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

ios 9 - xcode 7 - SFSafariViewController - Image Upload - Camera Black Screen

I'm working with SFSafariViewController, and ran into the following issue: The user is presented with an upload image button, when clicked the device properly displays multiple options, one of which is the camera. When the user selects the camera,…
Mike Purcell
  • 19,847
  • 10
  • 52
  • 89
12
votes
7 answers

How to open Safari View Controller from a Webview (swift)

I have an app that is currently using a webview and when certain links are clicked in the webview, it opens those links in Safari. I now want to implement the Safari View Controller(SVC) instead of booting it to the Safari app. I have done research…
beginnercoder
  • 133
  • 1
  • 1
  • 6
12
votes
4 answers

SFSafariViewController: Hide navigation bar

I was able to get my app to automatically load a url via the SFSafariViewController per this post, and it works great, the only drawback is the navbar. The SFSafariViewController navbar is kind of useless when being used this way, as the url is…
Mike Purcell
  • 19,847
  • 10
  • 52
  • 89
11
votes
4 answers

iOS sporadically sends old cookies

I have an application that rotates an auth token cookie values regularly. Each time the server rotates the token, it will not mark it as "good" until it sees the client has the token (cause the client includes it in the request headers for a…
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
11
votes
1 answer

How to close SFSafariViewController automatically when reaching a certain page

I want to close SFSafariViewController automatically upon reaching the "thank you" page of the Dropbox site after the user uploads something; it needs to automatically dismiss. How can I do that? Here is what I have so far: @IBAction func…
Ashish Verma
  • 113
  • 1
  • 5
11
votes
2 answers

Is it possible to display a SFSafariViewController inside of a UITabBarController?

I want to load SFSafariViewController inside of a tab, so the tab bar is at the bottom of the entire Safari view. Is this possible? I tried this with no luck: [self.tabBarController presentViewController:sfController animated:YES…
Ethan Allen
  • 14,425
  • 24
  • 101
  • 194
11
votes
2 answers

How to remove SFSafariViewController as a child view controller correctly?

I am using the technique provided by this SO answer to preload some URL in SFSafariViewController like this: addChildViewController(svc) svc.didMoveToParentViewController(self) view.addSubview(svc.view) And I try to remove the Safari View…
Joe Huang
  • 6,296
  • 7
  • 48
  • 81
11
votes
1 answer

Is the Scan Credit Card option available on the WebView?

The new iOS8 Scan Credit Card option is great on Safari. Has someone managed to make it work inside a WebView for a web app? I am using a valid SSL certificate, and I am using the correct ID for input filed as described here:…
Idris
  • 600
  • 2
  • 4
  • 16
10
votes
2 answers

Implement Safari View Controller in React Native

We currently uploaded our app to the apple store and got the following answer: We recommend implementing the Safari View Controller API to display web content within your app. The Safari View Controller allows the display of a URL and…
jhen
  • 1,164
  • 1
  • 11
  • 24
10
votes
3 answers

SFSafariViewController loading blank white page

I am using SFSafariViewController to open a URL in my iOS app.. it was working perfectly on iOS 9 but after updating my device to iOS 10, it just loads a blank white page with no URL in the address bar. Even safariViewController(controller:…
piyushkantm
  • 584
  • 5
  • 19
10
votes
1 answer

Google + login iOS App rejection from appstore using google sdk v3.x

After digging a lot I am here posting my problem. I am using google sign in latest sdk in my app and the app supports iOS 8+. I am using Xcode 7.2 currently. Recently my app got rejected with the very common reason which many users have experienced…
Rajan Maheshwari
  • 14,465
  • 6
  • 64
  • 98
9
votes
2 answers

How to open any URL clicked within my iOS app in the in-app browser?

How can I set a rule such that when my user clicks any web link within my app, it opens in the in-app browser instead of Safari? Context: I'm building an app that has several places where links are either embedded by me or are loaded through…
zaam
  • 287
  • 1
  • 2
  • 14
9
votes
3 answers

Why is SFSafariWebViewController not sharing cookies with Safari properly?

I created an incredibly basic app which includes a SFSafariViewController pointing at the URL http://www.w3schools.com/js/js_cookies.asp . This is a test website for reading and writing cookies. I then loaded the same website into Mobile Safari, and…
jowie
  • 8,028
  • 8
  • 55
  • 94
8
votes
2 answers

Unable to make SFSafariViewController statusbar style lightContent

I have a requirement of light content in status bar with black background, however some of the screen needs black status bar content with white background, hence I've kept View controller-based status bar appearance to YES in info.plist to adopt…
Dhaval H. Nena
  • 3,992
  • 1
  • 37
  • 50
8
votes
2 answers

Are there any workaround to avoid SFSafariViewController from hiding fixed position headers?

SFSafariViewController has this bug that is not reproducible in Safari. Regularly it will obscure the top of a fixed panel behind the site name / done chrome. This happens cause internally it loses sync between actual height of the page and size…
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
1
2
3
20 21