收藏
回答

我的手机华为Mate7有指纹识别功能,为什么调用生物识别API显示不支持指纹识别

代码如下


ceshi:function(){

     if (wx.canIUse('checkIsSupportSoterAuthentication')) {

        wx.checkIsSupportSoterAuthentication({

           success(res) {

              if (res.supportMode[0] == 'fingerPrint') { 

                 wx.startSoterAuthentication({

                    requestAuthModes: ['fingerPrint'],

                    challenge: '123456',

                    authContent: '请用指纹解锁',

                    success(res) {

                       

                    },

                    fail(res) {

                       console.log('用户取消了指纹识别,或调用出现错误')

                    }

                 })

              } else {

                 console.log('当前设备不支持指纹识别')

              }

           }

        })

     }

  }


回答关注问题邀请回答
收藏

5 个回答

  • Phy
    Phy
    2017-08-30

    https://mp.weixin.qq.com/s/IRI-RCGsVB2WiPwUCGcytA

    2017-08-30
    有用 1
    回复
  • 马晓川
    马晓川
    2017-12-26

    服了.... 折腾了几个小时,搞半天华为都不支持,却支持什么华硕,乐视, 只有一句 "呵呵" ... ...

    2017-12-26
    有用
    回复
  • 2017-12-04

    华为的呢?我晕哦

    2017-12-04
    有用
    回复
  • 小江江
    小江江
    2017-10-19

    我说呢,调式了好几次,,,原来我测试的机型都不在里面,,,

    2017-10-19
    有用
    回复
  • George Zhang
    George Zhang
    2017-08-30

    居然没有华为

    2017-08-30
    有用
    回复
登录 后发表内容