用于Web开发的iOS Touch ID [英] iOS Touch ID for Web Development
问题描述
我目前正试图找出一种方法,我可以建立一个响应的网站,但一旦网站加载到iOS设备上,我想使用新的iOS Touch ID api允许成员登录。我知道这是有可能做这样的事情使用原生的当然和科尔多瓦( http://cordova.apache.org/),但我想它作为一个认证系统几乎任何Web开发代码库。
I am currently trying to figure out a way where I can build a responsive website, however once the website loads on an iOS Device I wanted to use the new iOS Touch ID api to allow members to login. I know it is possible to do such things using Native ofcourse and also Cordova (http://cordova.apache.org/) but I want it to work as an authentication system with nearly any web development code base.
推荐答案
有一个Apache Cordova插件,可以为您提供一个简单的 Javascript API 。使用它变成这样一个简单的调用:
There is a Apache Cordova plugin that gives you a simple Javascript API. Using it becomes a simple call like this:
touchid.checkSupport(successCallback, notSupportedCallback);
touchid.authenticate(successCallback, failureCallback, text);
希望有助于
这篇关于用于Web开发的iOS Touch ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!