iOS Touch ID for Web Development

我们两清 提交于 2019-11-30 18:48:23

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!