最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

firebase - java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR when migrated to Ap

programmeradmin1浏览0评论

I am getting device registration token for android when using APKs for distribution using below code

FirebaseMessaging.getInstance().getToken()

But same thing is getting failed when I am using App bundles for the distribution on AppCenter or Google Play store. Getting below error

Failed to get firebase instance id token with exception java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: FIS_AUTH_ERROR

I am using below firebase libraries

implementation 'com.google.firebase:firebase-messaging:23.1.2'
implementation "com.google.firebase:firebase-core:21.1.1"

Below are some of checks I already did

  1. Checked proguard rules added (-keep class com.google.firebase.** { ; } -keep class com.google.android.gms.* { *; }) to the proguard-rules.pro file
  2. Checked Restricted keys from GC console and did make sure that SHA-1 are matching with the signing keys that I am using for generating app bundles.
  3. While debugging on the Android studio, able to generate device token and able to send sample push notification from FCM console, but when I built the app bundle and upload it to App Center and install it from there, then its not working (giving above mentioned error) because of this I am not able to register for receiving any push notifications.

I really appreciate if someone can help on this how to fix this?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论