WebView上是否提供“扫描信用卡"选项? [英] Is the Scan Credit Card option available on the WebView?
问题描述
新的iOS8扫描信用卡选项在Safari上非常有用.
The new iOS8 Scan Credit Card option is great on Safari.
有人设法使其在Web应用程序的WebView中工作吗?
Has someone managed to make it work inside a WebView for a web app?
我使用的是有效的SSL证书,并且输入的输入文件使用的是正确的ID,如下所述: https://stackoverflow .com/a/25925195/3949713
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
谢谢.
推荐答案
否,该选项在UIWebView
和WKWebView
中均不可用.
No, this option is not available in neither UIWebView
nor WKWebView
.
您最好的选择是使用SFSafariViewController
.它之所以起作用,是因为它在一个单独的进程中运行,以防止您的应用访问此与安全性相关的信息.
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.
这篇关于WebView上是否提供“扫描信用卡"选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!