最近我在现有项目中设置了 Firebase In-App Messaging,但是当我运行应用程序进行测试时,我遇到了 PERMISSION_DENIED 问题。该项目已经使用了 Firebase 的许多其他服务,如 FCM、动态链接、Crashlytics 等,并且一切正常。请帮忙。
我做过的配置
应用程序 gradle 中的依赖项
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-inappmessaging-display:19.0.2'
Firebase 日志是
I/FIAM.Headless: Starting InAppMessaging runtime with Instance ID cNqdR69UnlM
I/FIAM.Headless: Setting display event listener
I/FIAM.Headless: went foreground
I/FIAM.Headless: Forcing fetch from service rather than cache. Test Device: false | App Fresh Install: true
I/FIAM.Headless: Recoverable exception while reading cache: /data/user/0/com.social.dapp.debug/files/fiam_impressions_store_file (No such file or directory)
I/FIAM.Headless: Fetching campaigns from service.
I/FIAM.Headless: Removing display event listener
W/FIAM.Headless: Service fetch error: PERMISSION_DENIED: Requests from this Android client application com.social.dapp.debug are blocked.
I/FIAM.Headless: Setting display event listener
I/FIAM.Headless: Removing display event listener