问题
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.
回答1:
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);
Hope that helps
来源:https://stackoverflow.com/questions/26760290/ios-touch-id-for-web-development