I have implemented FCM in version 6 of my Android application. onTokenRefresh()
is getting called if my app is not previously installed. But when my app with a
I think that should still be the intended behavior. onTokenRefresh()
will be called the first time the app is installed. Not every time it's updated. So maybe, you could manually force the onTokenRefresh()
like what is mentioned in this post:
If you would like to manually force the
onTokenRefresh()
, you can create an IntentService and delete the token instance. Then, when you call getToken, theonTokenRefresh()
method will be called again.