小程序API wx.getAppAuthorizeSetting().bluetoothAuthorized == 'denied' 确认微信App已经授权访问了 蓝牙权限,但是一直返回 denied
// 获取微信 APP 授权设置
const appAuthorizeSetting = wx.getAppAuthorizeSetting()
console.log("蓝牙授权状态:" + appAuthorizeSetting.bluetoothAuthorized)
console.log("地理位置授权状态:" + appAuthorizeSetting.locationAuthorized)
console.log("精准定位状态: " + appAuthorizeSetting.locationReducedAccuracy)
if (appAuthorizeSetting.bluetoothAuthorized == 'denied') {
wx.showModal({
content: '请开启微信获取蓝牙功能权限',
showCancel: false,
title: '提示',
success: (result) => {
wx.openAppAuthorizeSetting();
},
fail: (res) => {},
complete: (res) => {},
})
return
}
没复现,微信版本多少,什么机型呢
红米手机微信号:yuandwang0714 时间点: 16:18