由于"Service Fetch Error",应用内消息传递不起作用



我们只是在应用程序消息中实现,在我们现有的应用程序在Play Store。但是,应用内消息传递不工作,不显示任何弹出窗口,所以,我们尝试使用更新的JSON,仍然没有改进,提到的日志显示有错误"服务取回错误"

请帮助。

实现:


implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'com.google.firebase:firebase-config:21.0.0'
implementation 'com.google.firebase:firebase-inappmessaging-display:20.1.0'
implementation 'com.google.firebase:firebase-analytics:19.0.1'

日志:

2021-09-27 12:04:06.759 14919-14919/com.hubhopper I/FIAM.Headless: went foreground
2021-09-27 12:04:06.770 14919-14919/com.hubhopper I/FIAM.Display: Binding to activity: DashBoardActivity
2021-09-27 12:04:06.771 14919-14919/com.hubhopper I/FIAM.Headless: Setting display event component
2021-09-27 12:04:06.920 14919-14971/com.hubhopper I/FIAM.Headless: Forcing fetch from service rather than cache. Test Device: false | App Fresh Install: true
2021-09-27 12:04:06.931 14919-14971/com.hubhopper I/FIAM.Headless: Recoverable exception while reading cache: /data/user/0/com.hubhopper/files/fiam_impressions_store_file (No such file or directory)
2021-09-27 12:04:07.211 14919-14919/com.hubhopper I/FIAM.Headless: Starting InAppMessaging runtime with Installation ID dA_tOxrhRJGCYmjyGXjM9A
2021-09-27 12:04:07.471 14919-15020/com.hubhopper W/FIAM.Headless: Service fetch error: Firebase Installations Service is unavailable. Please try again later.
2021-09-27 12:07:54.178 14919-14919/com.hubhopper I/FIAM.Display: Unbinding from activity: DashBoardActivity
2021-09-27 12:07:54.178 14919-14919/com.hubhopper I/FIAM.Headless: Removing display event component
2021-09-27 12:07:57.064 14919-14919/com.hubhopper I/FIAM.Headless: went foreground
2021-09-27 12:07:57.066 14919-14919/com.hubhopper I/FIAM.Display: Binding to activity: DashBoardActivity
2021-09-27 12:07:57.066 14919-14919/com.hubhopper I/FIAM.Headless: Setting display event component
2021-09-27 12:07:57.071 14919-14971/com.hubhopper I/FIAM.Headless: Forcing fetch from service rather than cache. Test Device: false | App Fresh Install: true
2021-09-27 12:07:57.074 14919-14971/com.hubhopper I/FIAM.Headless: Recoverable exception while reading cache: /data/user/0/com.hubhopper/files/fiam_impressions_store_file (No such file or directory)
2021-09-27 12:07:57.252 14919-16103/com.hubhopper W/FIAM.Headless: Service fetch error: Firebase Installations Service is unavailable. Please try again later.

它也不能使用firebase-BOM。

这里是指导,我们的api密钥在谷歌云凭证从一开始就不能用于firebase安装。

https://github.com/firebase/firebase-android-sdk/blob/master/firebase-installations/API_KEY_RESTRICTIONS.md

现在,在https://console.cloud.google.com/apis/api/firebaseinstallations.googleapis.com/metrics我们获得了200个指标,应用内部消息也运行良好。

所以,如果你面对的是"Firebase安装服务不可用";然后更新google_services。

通过在google cloud上创建新的凭据或限制firebase安装在当前密钥中,您正在使用android。

谢谢。

最新更新