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

Detect SFSafariViewController within javascript

How could I detect from UI/javascript side that my web application was loaded not in the Safari but in the in-app browser (for example like in-app browser of gmail's iOS application) with a help of SFSafariViewController? We checked a lot of…
2
votes
0 answers

SwiftUI - No AutoFill Credentials with HTTP Basic Authentication

I am struggeling to implement an AutoFill option if I want to access a webpage that uses http basic authentication. On a "normal" login page in my App accessing the AutoFill works fine (Capability "AutoFill Credential Provider" is set correctly). I…
Kuhlemann
  • 3,066
  • 3
  • 14
  • 41
2
votes
1 answer

iOS Firebase Auth Domain visible to users

I have searched for solutions to this issue but everything I've found seems to be applicable to a firebase web app, not to iOS implementations. When verifying a user using firebase phone auth for iOS, I understand the recaptacha is very unlikely to…
Amin
  • 908
  • 1
  • 11
  • 23
2
votes
1 answer

ASWebAuthenticationSession provides no way to modify warning dialog

I am trying to implement a few different authentication mechanisms with my iOS application. The key is that the iOS application is distributed via the App Store and the server that it connects to is open source. For this customers are expected to…
2
votes
0 answers

Freezing Landscape orientation on SFSafariViewController on modal style presentation iOS13

I'm presenting SFSafariViewController on app, but on Landscape doesn't fit the screen, also done/back button doesn't work - freezing. The controller is presenting as modal. When presenting full screen it works as it should. Is any option for showing…
2
votes
0 answers

SFSafariViewController: Audio stops on background

I play audio from a webpage using SFSafariViewController and when the app goes to background, the audio stops. It happens when user blocks the screen as well. Any ideas how to keep audio playing?
Erick Filho
  • 1,962
  • 3
  • 18
  • 31
2
votes
1 answer

Xamarin.UITest Query elements inside of a SFSafariViewController and ChromeCustomTabs

We are currently implementing Open Id Connect in our Xamarin App. Therefore we also want to adjust the UI-Tests to do the login inside of a browser with Xamarin.UITest. But when we try to query the username and password input fields with the c =>…
2
votes
1 answer

Swift White Screen upon returning from SafariWebController

When I open a safari view controller and then return to my app (when "Done" is pressed), my app renders a blank/white screen instead of the content for that view. The code below is the code I have tried using in an empty view - the issue happens no…
Pantoflarz
  • 76
  • 7
2
votes
1 answer

SFSafariViewController background audio after closing

I have an app that loads a webpage using SFSafariViewController and the user listen to some audios. I want to keep the audio playing even if the user closes SFSafariViewController. Is it possible?
Erick Filho
  • 1,962
  • 3
  • 18
  • 31
2
votes
1 answer

Pass cookies to SFSafariViewController from my native app

I need to have a seamless login from my native app to SFSafariViewController is that even possible I do use webview in my app but there are certain parts which requires SFSafariViewController.
Pikachu-go
  • 3,058
  • 4
  • 20
  • 27
2
votes
2 answers

Accessing Current Page Information in Safari 12 Extension Popover

I'm trying to get the active tab's page information to be displayed in a popover. I'm able to get it to show the URL or Title of the page currently, but it requires opening and closing the extension popover twice. I believe it's because to get that…
loken
  • 305
  • 2
  • 12
2
votes
3 answers

Apple Pay JS inside a WKWebView

I'm looking into whether it's possible to embed the Apple Pay JS/Web Payments API within a WKWebView. We have a web app which is embedded within a WKWebView and we'd like to implement Apple Pay without a bridge via JavaScript. I put together a very…
robjmills
  • 18,438
  • 15
  • 77
  • 121
2
votes
0 answers

what's the equivalent of shouldStartLoadWithRequest in SFSafariViewController?

is there a way to hook into SFSafariViewController url loading ? similar to in UIWebViewDelegate protocol: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest: That OR get autofill for usernames/passwords to work in WKWebView thanks
Anton Tropashko
  • 5,486
  • 5
  • 41
  • 66
2
votes
1 answer

Is it possible customize SFSafariViewController like edit "Share" button?

Is it possible customize SFSafariViewController like: - change "Share" button - or add new button on same toolbar where "Share" and "Compass" buttons are Any help will be appreciated.
2
votes
1 answer

Logging in SFAuthenticationSession then opening a link in SFSafariViewController that does SSO

I'm using AppAuth-iOS for my AD B2C login, AppAuth-iOS uses SFAuthenticationSession for making authentication requests on iOS 11+. I assumed that when I call SFSafariViewController to open a link to a webapp that does SSO with the B2C, it will…