收藏
回答

H5中js-sdk扫码功能,Android手机微信中无法调用扫码?

我的H5对接微信JS-SDK中的扫码功能,发现在Android手机微信中无法调用扫码功能,在苹果手机微信中可以使用.

报如下错误:

errMsg:scanQRCode:permissi on denied

errMsg:config:invalid signature

部分代码如下:

jweixin.config({  

                             debug: true,  

                             appId: this.appId,  

                             timestamp: this.timestamp,  

                             nonceStr:  this.nonceStr,  

                             signature: this.signature,  

                             jsApiList: [  

                                 'checkJsApi',

                                 'scanQRCode'

                             ]

 });


                        jweixin.checkJsApi({

                            jsApiList : ['checkJsApi','scanQRCode'],

                            success : function(res) {

                            }

                        });

                        jweixin.scanQRCode({

                            needResult: 1,

                            scanType: ["qrCode","barCode"],

                            success: function (res) {

                                _this.devicesn = res.resultStr;   

                            }

                        });


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

1 个回答

  • 祺爸💎
    祺爸💎
    2020-01-09

    没有权限,签名错误

    2020-01-09
    有用
    回复 1
    • 爱国小青年
      爱国小青年
      2020-01-09
      请问为啥苹果的签名没有错误呢?Android 权限和签名哪里需要有特殊处理吗?
      2020-01-09
      回复
登录 后发表内容
问题标签