iPhone手机getSeeting获取后台定位权限设置,短时间内返回结果不一致
发布于 4 年前 作者 liuyong 10578 次浏览 来自 问答

https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.getSetting.html

通过wx.getSeeting(Object object)获取res.authSetting['scope.userLocationBackground']

同一iphone手机,调用该api结果返回true之后,半分钟之后再获取返回false(中间小程序权限一直是允许后台定位)

回到顶部