HBuilderX2.8.4+版本调整为默认不再弹出隐私政策提示框,建议使用Android平台隐私与政策提示框配置方法,参考:https://ask.dcloud.net.cn/article/36937
最近谷歌应用商店(GooglePlay)加强对应用的审查,如果违反个人和敏感信息政策无法通过审核上架,甚至已经上架的应用也可能被下架。
提示信息如下:
sue: Violation of Personal and Sensitive Information policy
We’ve identified that your app is using an SDK or library that facilitates the collection and transmission of installed packages information without meeting the prominent disclosure guidelines.
If necessary, you can consult your SDK provider(s) for further information.
Next steps: Submit your app for another review
Read through the Personal and Sensitive Information policy and make the appropriate changes to your app. Your app is using the Igexin SDK, which is uploading users installed packages information to http://sdk.open.phone.igexin.com/api.php without a prominent disclosure. Prior to the collection and transmission, it must prominently highlight how the user data will be used, describe the type of data being collected and have the user provide affirmative consent for such use. Your app must handle user data securely, including transmitting it using modern cryptography (for example, over HTTPS).
这是因为UniPush和个推推送使用的SDK需要获取设备的唯一标识等用于下发推送消息,但没有提示用户确认导致违反谷歌的个人和敏感政策。
HBuilderX2.3.4+版已经更新个推SDK解决此问题
使用UniPush和个推推送时会在应用启动时会弹出隐私政策提示框
以上提示框可能会影响用户的使用体验,因此仅会在打GooglePlay渠道包时生效
提交云端打包时请在渠道包项中选择“GooglePlay”
配置不弹出隐私政策提示框
HBuilder2.6.13+版本支持配置不弹出隐私政策提示框
打开manifest.json文件,切换到源码视图:
- 5+ App项目
在 "plus" -> "distribute" -> "plugins" -> "push" -> "unipush" 下添加"__privacy_prompt__"字段 - uni-app项目
在 "app-plus" -> "distribute" -> "sdkConfigs" -> "push" -> "unipush" 下添加"__privacy_prompt__"字段
"push" : {
"unipush" : {
"__privacy_prompt__" : "none" //值为"show"则显示隐私政策提示框
}
},
提交云端打包后生效
离线打包配置
在AndroidManifest.xml文件中添加以下meta-data数据
<meta-data android:name="DCLOUD_PUSH_PRIVACY" android:value="false"/>