Skip to content
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

Update FCM Example: FirebaseInstanceId.Instance.Token is obsolete #293

Open
BeanStalka opened this issue Jan 23, 2019 · 2 comments
Open

Comments

@BeanStalka
Copy link

In the FCM example we are to use the class MyFirebaseIIDService

this class has an override for OnTokenRefresh.

where we call FirebaseInstanceId.Instance.Token.

This call is deprecated. In fact there is a whole new way to access the FCM Token

Including a new FirebaseMessagingService.OnNewToken() method that is supposed to be used to replace the OnTokenRefresh in the MyFirebaseIDService.

I have spent a couple of days digging on this one, and its very confusing with old samples and new samples mixing and matching.

There really is no definitive example on how to implement the new FCM that found. Just a guide to convert to the new FCM which assumes I am using Android Studio.

So Frustrating.

According to this video from google: https://www.youtube.com/watch?v=IeexEiFprY8

And this migration guide: https://developers.google.com/cloud-messaging/android/android-migrate-fcm

Support for GMC could be gone as soon as April of this year, As in 3 months!!!.

When attempting to use the InstanceIDListenerService as a base class, I notices it was not available in the NuGet package.

Please update this package so that It has all of the new classes required to use Firebase Messaging the right way.

Please remove all calls to deprecated methods, so we don't have to worry about our code breaking in production when Google decides to stop support for these deprecated methods.

Also, If I'm being 'paranoid' please explain to me how we are supposed to use this Nuget package to get the FCM token going forward.

Also please explain to me why the deprecated method is OK.

Thanks,

BeanStalka

@Dooks123
Copy link

Dooks123 commented Apr 4, 2019

Little over two and a half months after, no updates?

@dioscarr
Copy link

dioscarr commented Aug 7, 2019

Is there any update on how to implement the new FCM libraries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants