![](/img/trans.png)
[英]Is it possible that getInstallerPackageName() is null when app downloaded from Google Play Store?
[英]Consent form is not loading when App was downloaded from Play Store
我已在我的应用程序中集成了同意书。 如果我在调试模式下运行应用程序,它将显示出来。 如果我构建并安装签名的 APK,将显示同意书。
如果我从 Play 商店下载该应用程序,我不会收到任何错误消息,并且会到达以下代码。 将无法consentInformation.request...
中的代码。
consentInformation = ConsentInformation.getInstance(this);
String[] publisherIds = {"pub-xxx"};
consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() {
@Override
public void onConsentInfoUpdated(ConsentStatus consentStatus) {
**//*seems to be not reached**
...
}
}
因此不显示同意 - 但仅在从 Play 商店下载时。
是否有错误或错过了什么?
谢谢GGK
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.