我第二次收到来自 Google 的针对同一应用的这封电子邮件:
Issue: Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement
Google Play requires developers to provide a valid privacy policy when the app requests or handles sensitive user or device information. We’ve identified that your app collects and transmits the Android advertising identifier, which is subject to a privacy policy requirement. If your app collects the Android advertising ID, you must provide a valid privacy policy in both the designated field in the Play Console, and from within the app.
此时很明显我做错了什么。我在网上找到了很多这个问题的答案,我做了以下来解决这个问题:
- 我已打开https://app-privacy-policy-generator.firebaseapp.com/我已经制定了一项政策:
- 我已将生成的政策的 HTML 上传到我的网站,并将链接放入 Google Play 开发者控制台:
- 我在我的应用程序中添加了一个指向该政策的链接,该链接的网址与我在 Google Play 开发者控制台中放置的网址相同。可以通过以下方式访问该链接:
.
//Set the click event for the privacy policy
theView.findViewById(R.id.privacy_policy).setOnClickListener(
l -> startActivity(
new Intent(Intent.ACTION_VIEW, Uri.parse(PRIVACY_POLICY_URL))
)
);
我想知道:我还应该做什么?
即使我采取了这些行动,我的应用程序今天仍被删除。看看我的 gradle 文件是否有用:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:preference-v7:28.0.0'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
implementation 'com.google.android.gms:play-services-ads:17.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
我是否应该在策略生成器的您收集的个人身份信息
字段中添加一些文本?如果我留空
最佳答案
正如您的电子邮件所示,您的应用似乎会收集 Google Analytics AdId
。如果您在应用中使用 Firebase 服务,则默认启用 Google 广告收集。
如果您不想提供隐私政策,解决此问题的一种简单方法是禁用广告 ID 的收集。您只需在 AndroidManifest.xml
中添加此行即可:
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />
参见:https://firebase.google.com/support/guides/disable-analytics#disable_advertising_id_collection
关于android - 解决Android广告ID违规问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55562515/