Member-only story
New Way to Implement Firebase Push Notification — FirebaseInstanceIdService Deprecated (Android)
New versions + New Implementation = Easiness

As we already know that to Implement the push notifications with firebase we always need to define the two services.
com.google.firebase.INSTANCE_ID_EVENTcom.google.firebase.MESSAGING_EVENT
Now, In the new version of firebase-messaging, the firebaseInstanceIdService is Deprecated. In the new version we don’t need to use INSTANCE_ID_EVENT, just extend your MyInstanceIDListenerService service with FirebaseMessagingService like below:
Next Step is to @Override some methods:
@Override
public void onNewToken(String s) {
super.onNewToken(s);
}@Override
public void onMessageReceived(RemoteMessage remoteMessage) {}
Visit my website at https://danishamjad.com/