-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FCM Messaging onTokenRefresh() is not called. #23
Comments
onTokenRefresh in FirebaseInstanceIdService is only called when a new token is generated. If your app was previously installed and generated a token then onTokenRefresh would not be called. Try uninstalling and reinstalling the app to force the generation of a new token, this would cause onTokenRefresh to be called. Also be sure that your FirebaseInstanceIdService is properly defined in your AndroidManifest.xml |
thanks for your reply.It work. |
Thanks Kroikie Bro, Its Work |
Sorry, for my bad english. |
@kroikie Thanks for your reply |
The bug still exists. It's very strange I need to ask my users to reinstall app. |
Its really strange that this topic is closed but in my app onTokenRefresh() is not getting called even after the reinstallation |
@comm1x the recommendation of uninstall and reinstall is only for development, this is not a solution for an app that is already in the hands of users. You are able to call @thewijaysharma please ensure that your |
what if users have already installed the app and in a new update we need to implement FCM?? |
@sakshamsd in that case you would get the same callbacks as if the app had been initially installed. |
I tried implementing FCM on app updates but I can't get any token. What
should be done??
…On Wed, Jun 27, 2018, 9:17 PM Arthur Thompson ***@***.***> wrote:
@sakshamsd <https://github.com/sakshamsd> in that case you would get the
same callbacks as if the app had been initially installed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbhOV3TSf5ggk9Hp1zgCixJzx41kyOInks5uA6VygaJpZM4InNzK>
.
|
I have uninstalled app and installed again, but onTokenRefresh is never called. |
@sakshamsd and @mob-rockstar could you try using the latest SDK |
Can someone give us a solution for this? onNewToken is not getting called or initialized. Thus not getting the token to test the notification service in Firebase console. Using: in class: Log e -> "newToken" is not found in the logcat console, thus seems like onNewToken() is not even called/intialized :( |
@ksurya28995 |
@ksurya28995 I've had the same problem. What I've seen is that, after the app is installed, Google/FCM may issue a new token and you will NOT get a callback to |
Having same issue here. |
After two days of troubleshooting, finally i found out that the latest versions of the below nuget packages (or may be one of them) is causing this. I downgraded to the below versions and it started working.
|
it gives the token but it doesn't go to onTokenRefresh() which i need to trigger my sendRegistrationToServer().
The text was updated successfully, but these errors were encountered: