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

How can i display Admob banners in SFSafariViewcontroller?

I am developing an app in SWIFT 2.0 to open external websites within my app by using SFSafariViewcontroller. Since im using Admob for displaying ads within my app , i want to know if there is anyway i can show the banners on top of …
Dr.Ax
  • 281
  • 5
  • 12
1
vote
1 answer

How to add a custom activity to SFSafariViewController?

I want to add a custom activity (UIActivity) to a SFSafariViewController that I am presenting in my app. How can I do this?
William Denniss
  • 16,089
  • 7
  • 81
  • 124
1
vote
0 answers

Read and use a .txt file with my UIwebView

My app already uses a webview to display a website. I have all that working fine. One problem I do have is that the URL I want to use is actually hard coded into my project. I want the project to read all of the listed URL's in the .txt file and for…
beginnercoder
  • 133
  • 1
  • 1
  • 6
1
vote
0 answers

Google+ Authentication doesn't work or redirect users - SWIFT

So i'm currently working with the soundcloud api and when i'm trying to authenticate users nothing seems to happen in the SFSafariViewController it's just a blank screen. So after you enter your email and password your presented with this. Here is…
1
vote
3 answers

How to change Done Button Title on SFSafariviewController

I want to change the done button title appearance on SFSafariViewController navigation bar (iOS9.0 greater Versions).
abdul sathar
  • 2,395
  • 2
  • 28
  • 38
1
vote
2 answers

Codename one. Log in with Facebook using Webview component

My cn1 app incorporates loggin in with Facebook and Google+. When the doLogn() is called on Iphone, A Safari page is opened which allows the user to enter their credentials for Facebook or Google respectively. The problem I am facing is that my app…
Kyri33
  • 599
  • 2
  • 15
1
vote
0 answers

SFSafariViewController does not import ics files, Mobile Safari does

I have a simple test ics file at https://www.generomobile.de/gmi/cal.ics, and in Mobile Safari I get immediately the import dialog to add the test event to my calendar. Using SFSafariViewController with SFSafariViewController*…
Leo
  • 925
  • 10
  • 24
1
vote
1 answer

SFSafariViewController as subview

I would like to use the SFSafariViewController but still add a few buttons of my own below. I havn't found a way to do this. I tried using let svc = SFSafariViewController(URL: testURL) self.containerView.addSubview(svc.view) This results in a…
MikeB
  • 1,619
  • 2
  • 15
  • 27
1
vote
1 answer

Share on facebook when app is not configured

I want post something on Facebook. I have used SLComposeViewController for that. I just want to ask how can i share if user hasn't configured its app in phone. Is there any way that I open it in browser and then post anything. Consider I want to…
user6299410
1
vote
0 answers

Take snapshot of WKWebView without launching the web page

I'm looking to capture a snapshot of a WKWebView but without the view getting loaded. Essentially, the app user would copy a link to the app, the link should open in the background, have its snapshot taken, and then the image gets copied to the…
vikram17000
  • 453
  • 5
  • 18
1
vote
0 answers

SFSafariViewController Cancel at Prompt

Is there a way to detect if a user taps 'Cancel' vs 'Open' at a SFSafariViewController prompt. For example, if it's a YouTube link and they have the YouTube app installed it will prompt to open YouTube. If I tap 'Cancel' then all that shows is an…
Luke Irvin
  • 1,179
  • 1
  • 20
  • 39
1
vote
0 answers

Web Facebook Login Button Opens Blank Facebook Page When Clicked Inside iOS Safari View Controller

I have an iOS app I am developing that uses a Safari View Controller to open my website via the app. On the home page of my app I have implemented the Facebook SDK Login Button and everything works fine, I get logged in via Facebook and them and…
1
vote
0 answers

Swiping Out of Safari View Controller

I am presenting a Safari view controller when a row is selected in my table view. Once I'm done with the Safari view controller I press the done button and it returns me to my table view. I'm having an issue when I swipe to the right to dismiss the…
raginggoat
  • 3,570
  • 10
  • 48
  • 108
1
vote
1 answer

Open iOS web view without cookies

If I have an iOS app, how can I open a browser view inside the app (upon the user tapping a button) which contains no cookies from any domains? This means the browser view should not remember cookies from the previous time the user opened the…
forthrin
  • 2,709
  • 3
  • 28
  • 50
1
vote
1 answer

safariViewController debugging - URL not loading

I'm using SFSafariViewController in an iOS 9 app I'm building using Swift 2. I am trying to open a URL which fails for some reason. EVery other URL I've tried works, except for this…
SH10151
  • 954
  • 1
  • 10
  • 17