Friday, 19 August 2022

FCM token is not getting generated in few devices

I am using FirebaseInstanceId.getInstance().getToken() method to generate device token. I know this method is deprecated, but I am keen to find the exact RCA for the issue.

When I am using this method in emulator, it is working fine and returning token with all emulator variation tried with multiple emulators.

I tried debugging with android phone it is returning device token. But Our application runs on Zebra TC57 device and there it is not working and method is returning null. This works in some device and not works in some device. I have one device where it's not working to reproduce the issue Android version : 8.1.0

I tried checking Google play Service version with PackageInfoCompat.getLongVersionCode(getPackageManager().getPackageInfo(GoogleApiAvailability.GOOGLE_PLAY_SERVICES_PACKAGE, 0 )); this is returning 17785019

I checked for google play store package availability

PackageInfoCompat.getLongVersionCode(getPackageManager().getPackageInfo(GoogleApiAvailability.GOOGLE_PLAY_SERVICES_PACKAGE, 0 )); this is giving package name `com.android.vending` translating to new GooglePlayStorePackageName. 

Tried multiple other steps but not able to find exact root cause



from FCM token is not getting generated in few devices

No comments:

Post a Comment