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

SFSafariViewController and Javascript

I am working on IOS app in which I open login page in SFSafariViewController. And On that login page when the login is successful, a Json response is generated. I want to get that response and close SFSafariViewController. In android I did it…
Avinash kumawat
  • 475
  • 6
  • 18
0
votes
1 answer

I am getting URL schemes error while archiving my iOS app

This is the error - The following URL schemes found in your app are not in the correct formats.Please see RFC1738 for more detail. This is my code - @IBAction func webdropbox1(_ sender: Any) { let safariVC = SFSafariViewController(url:…
Ashish Verma
  • 113
  • 1
  • 5
0
votes
0 answers

SFSafariViewController won't use app cookies

We have an application where we use UIWebView to display HTML content. Some HTML content is restricted to so user need to pass the authentication process using webservice. Once user is authenticated, the cookies stored in app and UIWebView is used…
miOS
  • 1,379
  • 13
  • 20
0
votes
2 answers

Share Text, Image and Url on Google+ without login

I would like to share Image with Url on Google+ without login on my iOS app. I have used : NSString *temp = @"Hello World"; // Construct the Google+ share URL NSURLComponents* urlComponents = [[NSURLComponents alloc] …
0
votes
1 answer

Use SafariViewController inside a ViewController like UIWebview

I want to use safari cookies to authenticate users for my app. I am able to do it with SFSafariViewController. But the problem is i have UIWebView in my app to show some information. Even though user is logged in using safari, they are asked to…
Richa Srivastava
  • 482
  • 1
  • 7
  • 24
0
votes
0 answers

Present SFSafariViewController from not rootController swift

I have UINavigationController, firstViewController (rootController for navigationController), secondViewController and SFSafariViewController. If I present SFSafariViewController from firstViewController, it shown correctly and load page…
val_lek
  • 3,120
  • 3
  • 14
  • 12
0
votes
1 answer

Swift SafariViewController animation

In my SpriteKit games, all in landscape, I am showing a SafariViewController. func showSafariViewController(forURL url: String) { guard let validURL = NSURL(string: url) else { return } let safariViewController = SFSafariViewController(URL:…
crashoverride777
  • 10,581
  • 2
  • 32
  • 56
0
votes
1 answer

How to make SFSafariViewController open link in new Window (IOS Development)

After implemented SFSafariViewController. when navigatin through a web site that contains a link with target=_blank or a javascript with window.open the Link is opened in the same view, I would like to open it in another View, or make it create…
Daniel
  • 2,780
  • 23
  • 21
0
votes
1 answer

Can I preload the web content for Safari View Controller? - Swift

I try this: Can I preload the web content for Safari View Controller? but done button on SFSafariVC not working let svc = SFSafariViewController(URL: NSURL(string: self.SiteURL)!) self.presentViewController(self.svc, animated: true, completion:…
Adrian
  • 1
  • 2
0
votes
1 answer

SFSafariViewController does not reopen a webview inline URL link

I have a Webview with inline URL links which are opened with SFSafariViewController, as shown below: -(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { if (…
0
votes
1 answer

How to access value in SFSafariViewController that was previously set in the Safari App

Steps: User Clicks on Universal Link, opens in safari, if they don't have the app then a cookie is set and the app store opens. User opens newly downloaded app, upon initial launch, SFSafariViewController is opened with a different URL that checks…
Jay
  • 2,591
  • 1
  • 16
  • 28
0
votes
3 answers

SFSafariViewController doesn't open url in mobile mode

I have simple code NSURL *url = [NSURL URLWithString:@"https://en.wikipedia.org/wiki/Cat"]; if ([SFSafariViewController class] != nil) { SFSafariViewController *sfvc = [[SFSafariViewController alloc] initWithURL:url]; [self…
Kiryl Bielašeŭski
  • 2,663
  • 2
  • 28
  • 40
0
votes
1 answer

How to detect if the url sent to SafariViewController gives error 404

Is there any way to detect if the url sent to SafariViewController gives error 404 (page not found) and then submit to another default url or even dismiss the SafariViewController? I'm using this way right now, objetive-c…
0
votes
1 answer

Safari View Controller customizing size, frame add as a subview

How can I customize Safari View Controller to have my navigation bar and my navigation bar button to be seeing on the screen? Is this possible to do?
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
0
votes
1 answer

Implementing iOS9+ protocol on iOS8

I am using SFSafariViewController and SFSafariViewControllerDelegate. The app supports iOS8 too, but this class and delegate is only available from iOS9. On iOS8 this class and the delegate is not used (SFSafariViewController's availability is…
SPQR3
  • 647
  • 7
  • 20
1 2 3
20
21