-
Notifications
You must be signed in to change notification settings - Fork 52
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
FirebaseInstanceIdService is deprecated #1
Comments
Try updating gradle Firebase related implementations to current version //firebase |
This is because FirebaseInstanceIdService has been replaced by FirebaseMessagingService. You'll need to update your build.gradle files in the app folder to reflect the newer versions first, like @Amunratis has mentioned.
This is just similar to what he has mentioned, but the main modules you must upgrade are the core and the messaging modules. After doing so, you'll need to modify the MyFirebaseInstanceIDService class by making it inherit the FirebaseMessagingService instead of the FirebaseInstanceIdService like so:
Then replace the onTokenRefresh() function with the onNewToken() as given below:
|
'FirebaseInstanceIdService' is deprecated. Deprecated in Java
The text was updated successfully, but these errors were encountered: