api scope is not declared in the privacy agreement

江河/ 2023年10月24日/ 小程序/ 浏览 5949


最近好多朋友都遇到了在选择图片,选择地点,选择地址,获取手机号等等的时候,忽然就没反应了的想象,然后看命令行,提示的错误都是:xxxx api scope is not declared in the privacy agreement


这其实都是腾讯的【隐私保护】的原因。就是说如果你的小程序中使用到了涉及到用户隐私的api,需要提前向用户(腾讯)说明,不然相应的 api 是无法调用成功的。


涉及到的api包括:


收集你的昵称、头像:<button open-type="chooseAvatar">、<input type="nickname">、wx.getUserInfo (已回收)、wx.getUserProfile (已回收)、<button open-type="userInfo">(已回收)


收集你的位置信息:wx.authorize({scope:'scope.userLocation'})、wx.authorize({scope: 'scope.userLocationBackground'})、wx.authorize({scope: 'scope.userFuzzyLocation'})、wx.getLocation、wx.startLocationUpdate、wx.startLocationUpdateBackground、wx.getFuzzyLocation


收集你选择的位置信息:wx.choosePoi、wx.chooseLocation


收集你的地址:wx.chooseAddress


收集你的发票信息:wx.chooseInvoiceTitle、wx.chooseInvoice


收集你的微信运动步数:wx.authorize({scope: 'scope.werun'})、wx.getWeRunData


收集你的手机号:<button open-type="getPhoneNumber">、<button open-type="getRealtimePhoneNumber">


收集你的车牌号:wx.chooseLicensePlate


收集你选中的照片或视频信息:wx.chooseImage、wx.chooseMedia、wx.chooseVideo


收集你选中的文件:wx.chooseMessageFile


访问你的麦克风:wx.authorize({scope: 'scope.record'})、wx.startRecord、RecorderManager.start、<live-pusher>、wx.joinVoIPChat


访问你的摄像头:wx.authorize({scope: 'scope.camera'})、wx.createVKSession、<camera>、<live-pusher>、<voip-room>


访问你的蓝牙:wx.authorize({scope: 'scope.bluetooth'})、wx.openBluetoothAdapter、wx.createBLEPeripheralServer


使用你的相册(仅写入)权限:wx.authorize({scope: 'scope.writePhotosAlbum'})、wx.saveImageToPhotosAlbum、wx.saveVideoToPhotosAlbum


使用你的通讯录(仅写入)权限:wx.authorize({scope: 'scope.addPhoneContact'})、wx.addPhoneContact


使用你的日历(仅写入)权限:wx.authorize({scope: 'scope.addPhoneCalendar'})、wx.addPhoneRepeatCalendar、wx.addPhoneCalendar


调用你的加速传感器:wx.startAccelerometer


调用你的磁场传感器:wx.startCompass


调用你的方向传感器:wx.startDeviceMotionListening


调用你的陀螺仪传感器:wx.startGyroscope


读取你的剪切板:wx.setClipboardData、wx.getClipboardData


设置的方式:






在提交审核是要选择:采集用户隐私


发表评论

暂无评论,抢个沙发...

客服 工单