firebase cloud messaging – FCM Android SDK returns invalid tokens-ThrowExceptions

Exception or error:

I have problem with Android FCM SDK while obtaining FCM tokens.

Steps:

  1. Application gets tokens from Android FCM SDK

  2. Few minutes later we are trying send push message to this device

  3. We get response from FCM cloud “device_unregistered”

  4. After reinstall application, FCM SDK returns new active tokens.

Any suggestions why FCM SDK sometimes returns inactive tokens?

Using SDKs:

com.google.firebase:firebase-messaging:20.1.0

com.google.firebase:firebase-core:17.2.1

Greetings,
Krzysztof

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *