

English
HBuilderX2.6.3+版本开始支持配置隐私政策提示框 HBuilderX3.1.10+版本优化template模式策略,解决应用市场检测到弹出隐私政策提示框之前读取mac地址和应用列表的问题 HBuilderX3.2.1+版本开始支持androidPrivacy.json文件配置隐私政策提示框,真机运行时也可生效 HBuilderX3.2.5+版本隐私政策提示框内容中的链接支持本地 html 页面地址
注意:目前设置custom模式策略,并不能完全避免在弹出隐私提示框之前,读取设备信息(如mac地址、应用列表等)的情况,主要原因是自定义模式隐私提示框并不能阻塞应用的生命周期,使用到一些三方SDK(如X5 Webview内核、UniPush等)在应用启动时会执行初始化操作,三方SDK这是可能会读取设备信息。碰到此问题的开发者请先使用template模式解决,我们后续会提供新的自定义隐私提示框样式解决方案。
请使用HBuilderX3.2.15
+ 版本打包,并使用template配置隐私弹窗否则无法正常上架应用市场 uni小程序SDK暂时不支持uniapp自己配置隐私弹窗,需要宿主自行实现隐私弹窗
DCloud联合业内主流隐私合规检测厂商推出了uni隐私合规检测
服务,可在线申请获取详细检测报告,详见:uni隐私合规检测
根据工业和信息化部关于开展APP侵害用户权益专项整治要求,App提交到应用市场必须满足以下条件:
为了兼顾隐私政策提示框的易用性和灵活性,解决弹出隐私政策提示框之前可能弹出系统授权框的问题。Android平台提供了以下隐私政策提示配置策略:
为了持续优化应用及提供统计报表功能,在运行过程中会采集应用启动时间、异常错误日志等数据,其中包含设备唯一识别码。
DCloud通过了国家信息安全等级保护三级,证书编号:11010813802-20001,保障相关数据的安全性 DCloud并非大数据公司,采集的数据是为开发者提供统计服务和产品持续优化,不包含个人隐私信息
Please inform users in the "Privacy Policy" that your app is developed based on DCloud uni-app (5+ App/Wap2App), and add the following reference terms
Our product is developed based on DCloud uni-app (5+ App/Wap2App), during the running of the application, you need to collect your device unique identification code (IMEI/android ID/DEVICE_ID/IDFA, SIM card IMSI information, OAID) to provide statistical analysis Service, and improve performance and user experience through application startup data and exception error log analysis, to provide users with better services. For details, please visit "DCloud User Terms of Service". (DCloud user terms of service hyperlink to: https://ask.dcloud.net.cn/protocol.html)
Starting from HBuilderX3.2.1+, the androidPrivacy.json file has been added to configure the privacy policy prompt box, which supports real machine running and viewing effects, and also supports configuring some styles (such as background color, title color, button color, etc.) in androidPrivacy.json.
**Notice! Do not add comments to androidPrivacy.json, it will affect the display of the privacy policy prompt box! ! ! **
After checking, the androidPrivacy.json file will be automatically added to the project. You can double-click to open the custom configuration as follows:
{
"version": "1",
"prompt": "template",
"title": "服务协议和隐私政策",
"message": " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意并接受",
"buttonRefuse": "暂不同意",
"hrefLoader": "system",
"backToExit":"false",
"second": {
"title": "确认提示",
"message": " 进入应用前,你需先同意<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续",
"buttonRefuse": "退出应用"
},
"disagreeMode":{
"support": false,
"loadNativePlugins": false,
"visitorEntry": false,
"showAlways": false
},
"styles": {
"backgroundColor": "#00FF00",
"borderRadius":"5px",
"title": {
"color": "#ff00ff"
},
"buttonAccept": {
"color": "#ffff00"
},
"buttonRefuse": {
"color": "#00ffff"
},
"buttonVisitor": {
"color": "#00ffff"
}
}
}
uni-app项目可以使用uni原生插件能支持更多自定义隐私政策提示框样式,可参考:https://ext.dcloud.net.cn/plugin?id=5581
打开项目的manifest.json文件,切换到“源码视图”项
privacy节点数据格式如下:
"privacy": {
"prompt": "template", //可取值template、none
"template": { //prompt取值为template时有效,用于配置模板提示框上显示的内容
}
}
This prompt box will be displayed on the Splash page before the application starts, and the user will only enter the application after clicking the agree button
You can use the following configuration template prompt box content
"privacy": {
"prompt": "template",
"template": {
"title": "服务协议和隐私政策",
"message": " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意",
"buttonRefuse": "暂不同意",
"second": {
"title": "温馨提示",
"message": " 进入应用前,你需先同意<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续",
"buttonRefuse": "退出应用",
}
}
}
Submit cloud package after configuration to take effect
Provides 5+ APIs to set/get status:
if(!plus.runtime.isAgreePrivacy()){
//Pop up a custom privacy policy prompt box
}
Note: Before users agree to the privacy policy, do not call APIs that may pop up the system authorization box, such as location (plus.geolocation), recording (plus.audio.getRecorder), etc.
When the value of the prompt attribute is set to none, it means that the privacy policy prompt box is not displayed. This mode can be used if not submitting to the app market.
HBuilderX3.2.1+ version adds androidPrivacy.json configuration privacy policy prompt box, the priority is higher than native environment configuration, HBuilderX3.2.1+ version recommends using androidPrivacy.json to replace the offline packaging configuration in this chapter
Configure the privacy provider mode in the AndroidManifest.xml applied in the native project, and add the meta-data node data under the application node, as follows:
<application>
<meta-data
android:name="DCLOUD_PRIVACY_PROMPT" android:value="template"/>
</application>
android:value can be "template", "none".
** When configuring the prompt box using the "template" template, you need to configure the prompt box content as follows**
Configure the default language content in strings.xml in the res/values directory of the native project (this file must be configured in order to be compatible with user settings for clearing different languages). Chinese also needs to create the strings.xml file in the res/values-zh directory and configure the Chinese content.
Please add the following fields to the strings.xml of the native project to configure the content of the template prompt box.
<resources>
<string name="dcloud_privacy_prompt_title">弹窗标题</string>
<string name="dcloud_privacy_prompt_accept_button_text">接收按钮文字配置字段(不存在该字段,即使用默认内容“同意”)</string>
<string name="dcloud_privacy_prompt_refuse_button_text">拒绝按钮文字配置字段(没有该字段或该字段内容为空,拒绝按钮不显示)</string>
<string name="dcloud_privacy_prompt_message"><Data><![CDATA[弹窗内容,如果内容中有富文本,请将内容放入cdata下,如当前配置]]></Data></string>
</resources>
HBuilderX 3.1.12+ version adds support for the second confirmation function of the template privacy prompt box. When the user selects the "Reject" button when clicking the privacy template prompt box, and the dcloud_second_privacy_prompt_message configuration of the second confirmation prompt box is not empty, a second confirmation prompt box will pop up.
Please add the following fields to the strings.xml of the native project to configure the content of the secondary confirmation prompt box.
<string name="dcloud_second_privacy_prompt_title">二级弹窗标题</string>
<string name="dcloud_second_privacy_prompt_accept_button_text">接收按钮文字配置字段(不存在该字段,即使用默认内容“确定”)</string>
<string name="dcloud_second_privacy_prompt_message"><![CDATA[协议内容]]></string>
<string name="dcloud_second_privacy_prompt_refuse_button_text">拒绝按钮文字配置字段(没有该字段或该字段内容为空,拒绝按钮不显示)</string>
HBuilderX3.2.12+ version androidPrivacy.json supports internationalization
{
"prompt": "template",
"buttonAccept" : "默认接受按钮文本"
}
Add buttonAcceptLocales to handle the internationalized text of buttonAccept, as follows
{
"prompt": "template",
"buttonAccept" : "默认接受按钮文本",
"buttonAcceptLocales": {
"en": "英文接受按钮文本",
"zh-Hans":"中文简体接受按钮文本",
"zh-Hant": "中文繁体接受按钮文本"
}
}
It is necessary to inform users in the "Privacy Policy" that your app is developed based on DCloud uni-app (5+ App/Wap2App), and add the following reference terms:
Our product is developed based on DCloud uni-app (5+ App/Wap2App), during the running of the application, you need to collect your device unique identification code (IMEI/android ID/DEVICE_ID/IDFA, SIM card IMSI information, OAID) to provide statistical analysis Service, and improve performance and user experience through application startup data and exception error log analysis, to provide users with better services.
In addition, the third-party SDK used needs to be supplemented in the privacy policy, refer to:
Please refer to the document Privacy compliance clauses for each functional module of the Android platform
If the application uses the uni native plugin, you need to pay attention to the following points:
Privacy and Permission Statement
in the plugin details page when using the plugin. (What sdk does the plugin use? What user information is obtained? All should be provided by the plugin author and filled in Privacy, Permission Statement
)Baidu positioning
is integrated. It is necessary to describe the integration of Baidu positioning SDK in the privacy agreement. Obtained xxx user information! Used for xxx.Privacy and Permission Statement
, please contact the plug-in developer or feedback with us to supervise and supplement.The "Privacy Policy" must be very clear and comprehensive (do not use vague and unclear words that may collect and understand user information) the purpose, method and scope of collecting users' personal information. If the application uses related functions such as "address book" and "SMS", please describe it according to the application business scenario.