Firebase Token issue

89 views
Skip to first unread message

Zaigham Raza

unread,
Jul 18, 2023, 9:49:19 AM7/18/23
to Firebase Google Group
I have intergrated firebase FCM in my Android application and when i run it from Pakistan it is getting firebase token successfully and when my customer run it from netherlands it gives error of firebase token failed. Can anybody help in this? Here is my code snippet for getting token

FirebaseMessaging.getInstance().token.addOnCompleteListener { task ->
if (!task.isSuccessful) {
Toast.makeText(this, "FirebaseToken Failed", Toast.LENGTH_SHORT).show()
return@addOnCompleteListener
}
Log.e("Zaigham","FireBase Hit successfull = ${task.result.toString()}")
AppSharedPreferences.deviceFBToken = task.result.toString()
}

Reply all
Reply to author
Forward
0 new messages