gpt4 book ai didi

android - Firebase In App Messaging PERMISSION_DENIED

转载 作者:搜寻专家 更新时间:2023-11-01 09:21:26 104 4
gpt4 key购买 nike

我在 App 消息传递中设置了 firebase。已创建 Activity ,但我的应用无法转换。在 logcat 中,我得到了以下日志

2019-02-26 11:22:40.616 16131-16131/app.package.name I/FIAM.Headless: Starting InAppMessaging runtime with Instance ID ciy4xtnJqBQ
2019-02-26 11:22:42.153 16131-16131/app.package.name I/FIAM.Headless: Setting display event listener
2019-02-26 11:22:42.457 16131-16131/app.package.name I/FIAM.Headless: went foreground
2019-02-26 11:22:42.464 16131-16157/app.package.name I/FIAM.Headless: Forcing fetch from service rather than cache. Test Device: false | App Fresh Install: true
2019-02-26 11:22:42.472 16131-16157/app.package.name W/FIAM.Headless: Recoverable exception while reading cache: /data/user/0/app.package.name/files/fiam_impressions_store_file: open failed: ENOENT (No such file or directory)
2019-02-26 11:22:42.483 16131-16157/app.package.name I/FIAM.Headless: Fetching campaigns from service.
2019-02-26 11:22:42.999 16131-16157/app.package.name W/FIAM.Headless: Service fetch error: PERMISSION_DENIED: Requests to this API firebaseinappmessaging.googleapis.com method google.internal.firebase.inappmessaging.v1.sdkserving.InAppMessagingSdkServing.FetchEligibleCampaigns are blocked.

设置

安卓工作室 3.3.1

com.google.firebase:firebase-inappmessaging-display:17.0.5

com.google.firebase:firebase-core:16.0.7

在 Google Cloud Console 中启用的应用消息传递 API 中的 Firebase

可能是什么原因?

2019-02-26 11:22:42.999 16131-16157/app.package.name W/FIAM.Headless: Service fetch error: PERMISSION_DENIED: Requests to this API firebaseinappmessaging.googleapis.com method google.internal.firebase.inappmessaging.v1.sdkserving.InAppMessagingSdkServing.FetchEligibleCampaigns are blocked.

最佳答案

问题的原因是对 Android 应用程序的 API key 的限制。因此为整个项目启用了 InAppMessaging API,但它还需要将 InAppMessaging API 添加到特定平台 API key 限制。

关于android - Firebase In App Messaging PERMISSION_DENIED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54881422/

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