gpt4 book ai didi

android - 如何在 WebView 中获取 "User Consent"?

转载 作者:行者123 更新时间:2023-11-29 01:10:09 24 4
gpt4 key购买 nike

我指的是 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com