getConnectedWifi在iOS上返回:fail no wifi is connected?
在iOS手机中iPhone 6s Plus返回errMsg: “getConnectedWifi:fail no wifi is connected.”
在安卓手机上没这个问题
wx.startWifi({
success: function () {
wx.getConnectedWifi({
success: function (res) {
console.log(res, 'wifi成功信息')
},
fail: function (err) {
console.log(err, 'wifi失败信息')
}
})
},
fail: function (err) {
console.log(err, 'Wi-Fi初始化失败,请返回重试')
}
})
手机型号:iPhone 6s Plus
运行系统:iOS 14.2
微信版本:8.0.9
基本库版本:2.19.0[560]
errMsg: “getConnectedWifi:fail no wifi is connected.”