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

How to load a website faster with SfSafariView or WKWebView using cache?

I have used SFSafariView to load a ‘HTTPS’ website but its taking way to long to load up each time upon button click. I remember when using the UiWebView a few years back on a tabbed application it would load the website first time when you get onto…
Swifter
  • 73
  • 1
  • 14
0
votes
0 answers

SFSafariviewController not loading white screen ios11

I have a SFSafariViewController opening at the push notification received. It has been working fine and is still working fine on all the versions of iOS except iOS 11. Am using the code in my ViewController class. NSURL *URL = [NSURL…
AlKhalid
  • 1
  • 1
0
votes
1 answer

How to get loaded web page title in SFSafariViewController?

How to get loaded web page title in SFSafariViewController? I am using below these delegate to get the url but it doesnt call when i am pressing Action button func safariViewController(_ controller: SFSafariViewController, activityItemsFor URL: URL,…
Gowtham S
  • 37
  • 7
0
votes
1 answer

Appium & Xcode 9: UI testing in safari view controller not possible anymore?

Is there any way I can automate ui tests in safari view controller? Since I'm using Xcode 9 I cannot reference UI elements inside fo SFSafariViewController anymore. When I debug the view hierarchy, I cannot see any XCUIElements, for example…
Objective D
  • 799
  • 5
  • 16
0
votes
1 answer

SFSafariViewController language is not updated

I'm working on a project in swift 2.0. The App is for two languages chinese and english. I'm using the SFSafariViewController to open the url. Now the problem is when i choose the english language the url load successfully. But I convert the…
gurmeet kaur
  • 111
  • 1
  • 10
0
votes
1 answer

Ionic 3 - Push-plugin Error: String resource ID #0x0 when safariViewController Installed

Basicly this questions is for getting some guidance about this issue and how to solve it. I'm getting this error with phonegap-plugin-push after I try to use cordova-plugin-safariviewcontroller in the proyect, when the app loads the…
0
votes
0 answers

How to restrict SFSafariViewController to only use WiFi?

Is it possible to make an instance of SFSafariViewController that will only use WiFi and not the cellular network? If it's possible, how does one do so?
Isaac
  • 10,668
  • 5
  • 59
  • 68
0
votes
0 answers

Download Zip file through SFSafariViewController or Webview in Xamarin iOS

I am loading SFSafariViewController in my Xamarin iOS and loading https://osdn.net/projects/sfnet_fotohound/downloads/sample-pictures/Sample/Sample-Pictures.zip/ this URL. When I hit this URL in my Safari App, a Zip file is automatically downloaded…
MainakChoudhury
  • 502
  • 1
  • 7
  • 23
0
votes
1 answer

Tab Bar Ignoring UITraitCollection requests - 6 Tabs Desired

I'm using the following code to trick my application into believing it's an iPad and displaying 6 tabs on the tab bar. -(UITraitCollection *)traitCollection { UITraitCollection *realTraits = [super traitCollection], *lieTrait =…
0
votes
0 answers

Google Login with SFSafariViewController api in IOS with obj c

I was usgin google login api and everything was working just fine. But google has stopped accepting login requests from webviews (google error : disallowed_useragent) and if I send the user to safari to login then apple rejects my build with a…
0
votes
1 answer

Unexpected SafariViewController reaction

I have an app with some Table View Controllers. In the last one of each cell I have a different url. I decided then to insert a SafariVC, but what is occurring is that it is like it was as a FirstResponder. class Page3: UITableViewController,…
ARNON
  • 1,097
  • 1
  • 15
  • 33
0
votes
0 answers

SFSafariViewControllers not working in my app

I have some SFSafariViewControllers in my app. However, all of a sudden they're not working anymore. I present them with the following code: SFSafariViewController *sfsvc = [[SFSafariViewController alloc] initWithURL:[NSURL…
user4992124
  • 1,574
  • 1
  • 17
  • 35
0
votes
1 answer

Safari View Controller - send data back to app

I implemented Safari View Controller in iOS app, but is there a way to send some data from javascript of opened site to main iOS app. I am opening my web app in the Safari VC.
0
votes
1 answer

Detecting and intercepting video playback in SFSafariViewController

I am using SFSafariViewController in my app. When the user plays a video I have to show a pop up asking whether the user wants to download the videos. I have done this with UIWebView and AVPlayerItemBecameCurrentNotification. But this is not working…
Alex Thomas
  • 38
  • 10
0
votes
0 answers

how to handle open URL in iOS library

I am creating an SDK(static library) which would be used by the clients in their apps. What this SDK helps them achieve is, open a set of pages, do some activity and come back to the app with the response from the webpages. How I am doing this is,…