需要采取行动 在 2020 年 3 月 1 日之前切换到 Play Referrer API
Action Required Switch to the Play Referrer API by March 1, 2020
我收到了来自 Google 的电子邮件,如下所示:-
Hello Google Play Developer,
We recently announced that we’ll be deprecating the install_referrer
intent broadcast mechanism. Because one or more of your apps uses this
intent to track referrals, we wanted to ensure you make the switch
before March 1, 2020. After this date, new versions of the Play Store
app will no longer broadcast the install_referrer intent after app
installs.
Action required
Migrate to the Play Install Referrer API to track your app installs
for the following apps and/or games.
但是在我的应用程序中我没有在任何地方使用它。出现此警告的可能原因是什么?
我检查了 Firebase 对此的支持,因为我可以看到 firebase 库正在使用 install_referrer。收到以下回复:
This is a great catch. Thanks for bringing this to our attention. I'm currently in discussion with our Analytics experts and will get back within 48 hours, or as soon as I have more information. For now, no need for any action from your end, wait for the next update from the Firebase team.
我认为我们应该等待 firebase 库的下一次更新,他们可能会修复它。我们的截止日期是 2020 年 3 月 1 日。我认为 firebase 团队更新库就足够了。
如果您自己在代码中使用了这个 API,那么您需要立即更改它,因为您不依赖于 firebase 或任何其他第三方库提供商。
com.google.firebase:firebase-core 和 com.google.firebase:firebase-analytics 在内部使用此广播意图。您可以通过 android 清单文件中的合并清单进行检查。
此接收者正在使用 install-referrer 意图。
com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
或者我们可以通过在 android manifest.xml 文件中添加以下行来直接明确删除它,但这会导致 破坏安装引用机制 以防万一如果您的应用正在使用转化跟踪或任何其他安装活动,或者我们应该等待 firebase 库的下一次更新。
<receiver android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
tools:remove="android:permission" >
<intent-filter>
<action
android:name="com.android.vending.INSTALL_REFERRER"
tools:node="remove" />
</intent-filter>
</receiver>
从 firebase 中排除所有测量模块
implementation ('com.google.firebase:firebase-core:17.2.2'){
exclude group: 'com.google.android.gms', module: 'play-services-measurement-api'
exclude group: 'com.google.android.gms', module: 'play-services-measurement'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-impl'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk-api'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-base'
}
我收到了来自 Google 的电子邮件,如下所示:-
Hello Google Play Developer,
We recently announced that we’ll be deprecating the install_referrer intent broadcast mechanism. Because one or more of your apps uses this intent to track referrals, we wanted to ensure you make the switch before March 1, 2020. After this date, new versions of the Play Store app will no longer broadcast the install_referrer intent after app installs.
Action required
Migrate to the Play Install Referrer API to track your app installs for the following apps and/or games.
但是在我的应用程序中我没有在任何地方使用它。出现此警告的可能原因是什么?
我检查了 Firebase 对此的支持,因为我可以看到 firebase 库正在使用 install_referrer。收到以下回复:
This is a great catch. Thanks for bringing this to our attention. I'm currently in discussion with our Analytics experts and will get back within 48 hours, or as soon as I have more information. For now, no need for any action from your end, wait for the next update from the Firebase team.
我认为我们应该等待 firebase 库的下一次更新,他们可能会修复它。我们的截止日期是 2020 年 3 月 1 日。我认为 firebase 团队更新库就足够了。
如果您自己在代码中使用了这个 API,那么您需要立即更改它,因为您不依赖于 firebase 或任何其他第三方库提供商。
com.google.firebase:firebase-core 和 com.google.firebase:firebase-analytics 在内部使用此广播意图。您可以通过 android 清单文件中的合并清单进行检查。 此接收者正在使用 install-referrer 意图。
com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
或者我们可以通过在 android manifest.xml 文件中添加以下行来直接明确删除它,但这会导致 破坏安装引用机制 以防万一如果您的应用正在使用转化跟踪或任何其他安装活动,或者我们应该等待 firebase 库的下一次更新。
<receiver android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
tools:remove="android:permission" >
<intent-filter>
<action
android:name="com.android.vending.INSTALL_REFERRER"
tools:node="remove" />
</intent-filter>
</receiver>
从 firebase 中排除所有测量模块
implementation ('com.google.firebase:firebase-core:17.2.2'){
exclude group: 'com.google.android.gms', module: 'play-services-measurement-api'
exclude group: 'com.google.android.gms', module: 'play-services-measurement'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-impl'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk-api'
exclude group: 'com.google.android.gms', module: 'play-services-measurement-base'
}