errMsg: "chooseMedia:fail api scope is not declared in the privacy agreement"
时间: 2023-10-31 19:57:01 浏览: 117
errMsg: "chooseMedia:fail api scope is not declared in the privacy agreement" 这个错误是因为在隐私协议中没有声明所需的api。根据引用和引用中的内容,可以看出,requiredPrivateInfos字段是用来声明小程序所需的私有信息的。在app.json文件中,需要将"chooseMedia"的api声明在requiredPrivateInfos字段中。如果没有正确声明所需的api,调用该api时就会返回上述错误消息。因此,你需要在app.json文件的requiredPrivateInfos字段中添加"chooseMedia",并遵循相应的隐私协议来声明该api。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [errMsg: “chooseAddress:fail the api need to be declared in …e requiredPrivateInfos field in app....](https://blog.csdn.net/VVVVV16/article/details/127066513)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [小程序收货地址报错chooseAddress:fail the api need to be declared in the requiredPrivateInfos field ...](https://blog.csdn.net/CSDN_xiaoyuan/article/details/126562097)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文