wx.scanCode 扫一扫 在ios 下调用无效
- 问题描述
因为一些需求,
需要微信扫描小程序二维码而主动到某个页面然后再进行onLoad获取参数
主动调用wx.scanCode Api
发现在iphone XR 与 ios8 扫一扫没有反应,
其他ios未测试,
安卓正常。
然后搜索问题发现微信很多回答下说是在onReady里调用扫一扫 依然失败。
不知道是bug 还是 我代码有问题。



因为一些需求,
需要微信扫描小程序二维码而主动到某个页面然后再进行onLoad获取参数
主动调用wx.scanCode Api
发现在iphone XR 与 ios8 扫一扫没有反应,
其他ios未测试,
安卓正常。
然后搜索问题发现微信很多回答下说是在onReady里调用扫一扫 依然失败。
不知道是bug 还是 我代码有问题。