onTokenRefresh not getting called in signed APK, if previous version of app installed doesn't have FCM implemented

后端 未结 1 1941
春和景丽
春和景丽 2020-12-06 19:16

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

相关标签:
1条回答
  • 2020-12-06 19:38

    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, the onTokenRefresh() method will be called again.

    0 讨论(0)
提交回复
热议问题