- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我指的是 https://developer.android.com/reference/android/webkit/WebView.html
有一段话是这样说的
Metrics
WebView may upload anonymous diagnostic data to Google when the user has consented. This data helps Google improve WebView. Data is collected on a per-app basis for each app which has instantiated a WebView. An individual app can opt out of this feature by putting the following tag in its manifest:
<meta-data android:name="android.webkit.WebView.MetricsOptOut"
android:value="true" />Data will only be uploaded for a given app if the user has consented AND the app has not opted out.
该页面没有关于如何获得用户同意的任何进一步信息。
那么现在的问题是,在WebView中激活这个“用户同意”的代码是什么?这是像android的“权限”对话框一样对WebView的设置吗?
最佳答案
我相信这是在谈论设置中“应用和游戏”选项卡上“收集应用使用数据”设置中的全局同意。
它不会弹出一个额外的框来获得仅针对 WebView 的特殊额外同意。
关于android - 如何在 WebView 中获取 "User Consent"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43739519/
我是一名优秀的程序员,十分优秀!