sfsafariviewcontroller

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

*爱你&永不变心* 提交于 2019-12-06 23:53:55
问题 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 of the shrinking header chrome. Good small header Bad small header (SF chrome should be small but it is big) Good large header This issue was reported elsewhere at: https://meta.stackexchange.com/questions/279792/new-ios-chat-headers-occasionally-hide

How to close SFSafariViewController automatically when reaching a certain page

旧时模样 提交于 2019-12-06 22:56:01
问题 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 Singles5(_ sender: Any) { let safariVC = SFSafariViewController(url: NSURL(string: "https://www.dropbox/Upload")! as URL) self.present(safariVC, animated: true, completion: nil) safariVC.delegate = self } 回答1: One way I can think of is using the Custom URL

Is it possible to load local pdf file on SFSafariViewController?

ぐ巨炮叔叔 提交于 2019-12-05 23:15:27
I tried with WKWebViewController, but still not working. url = [[NSBundle mainBundle] URLForResource:@"manual_eos_1d_x" withExtension:@"pdf"]; WKWebViewController * controllerweb = (WKWebViewController *)[segue destinationViewController]; controllerweb.url = url; It is not possible to show local pdf in SFSafariViewController, but it is possible to display it in a WKWebView. SFSafariViewController only support http and https schemes. From SFSafariViewController documentation : If your app lets users view websites from anywhere on the Internet, use the SFSafariViewController class. If your app

How to close SFSafariViewController automatically when reaching a certain page

橙三吉。 提交于 2019-12-05 03:21:29
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 Singles5(_ sender: Any) { let safariVC = SFSafariViewController(url: NSURL(string: "https://www.dropbox/Upload")! as URL) self.present(safariVC, animated: true, completion: nil) safariVC.delegate = self } One way I can think of is using the Custom URL scheme . You can specify your app's custom URL in the callback parameter of Dropbox (if Dropbox has callback)

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

人走茶凉 提交于 2019-12-05 03:19:12
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 of the shrinking header chrome. Good small header Bad small header (SF chrome should be small but it is big) Good large header This issue was reported elsewhere at: https://meta.stackexchange.com/questions/279792/new-ios-chat-headers-occasionally-hide-behind-safari-navigation-controls-when-vi and is an issue in iOS 9 and up (still an issue in 12.0.1)

How to hide the done button and search bar in SafariViewController

不想你离开。 提交于 2019-12-04 12:53:09
问题 I'm using SafariViewController to display a webpage, and rather than the default "done" button I push from my app's NavigationController to preserve my nav stack and back arrow. However, I need to hide the default Done button and search bar on the SafariViewController . Is that possible yet? See my code and screen shot below... let svc = SFSafariViewController(URL: pinterestSafariURL) navigationController?.pushViewController(svc, animated: true) note: linking to this question, but the answer

Is the Scan Credit Card option available on the WebView?

﹥>﹥吖頭↗ 提交于 2019-12-04 09:38:49
问题 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: https://stackoverflow.com/a/25925195/3949713 Thanks. 回答1: No, this option is not available in neither UIWebView nor WKWebView . Your best bet is to use SFSafariViewController instead. The reason it works there is because it runs in a separate process, to prevent your app

When can I use a SFSafariViewController, WKWebView, or UIWebView with universal links?

十年热恋 提交于 2019-12-03 08:32:06
问题 In the Universal Links section of the iOS App Search Programming Guide, Apple says: If you instantiate a SFSafariViewController, WKWebView, or UIWebView object to handle a universal link, iOS opens your website in Safari instead of opening your app. However, if the user taps a universal link from within an embedded SFSafariViewController, WKWebView, or UIWebView object, iOS opens your app. What does "handle a universal link" mean? Can I not ever open the given URL with an

Is the Scan Credit Card option available on the WebView?

ぃ、小莉子 提交于 2019-12-03 02:59:37
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: https://stackoverflow.com/a/25925195/3949713 Thanks. No, this option is not available in neither UIWebView nor WKWebView . Your best bet is to use SFSafariViewController instead. The reason it works there is because it runs in a separate process, to prevent your app from getting access to this security-relevant information. 来源: https://stackoverflow.com/questions/26520578

What does Unrestricted Web Access mean in iTunes Connect

女生的网名这么多〃 提交于 2019-12-03 02:42:09
问题 When you are submitting your app to Apple app store, there is a section named "Rating" where you should rate your content based on the chart and identify how frequently the content appears. There is one option called "Unrestricted web access" which there are no further details available about this on the Internet nor iTunes Connect Developer Guide. All you can find everywhere is: Select Yes if your app allows users to navigate and view web pages, such as with an embedded browser. What does