Ionic 4 Cordova - Run Android Firebase error all of a sudden

Same problem here

ref this
then solution:

step:1
add @Override in MyFirebaseMessagingService in the path
…\platforms\android\src\com\gae\scaffolder\plugin\MyFirebaseMessagingService.java

    @Override
    public void onNewToken(String s) {
        super.onNewToken(s);
        Log.d("NEW_TOKEN",s);
    }

step2:
delete file MyFirebaseInstanceIDService.java
in the path
…\platforms\android\src\com\gae\scaffolder\plugin\MyFirebaseInstanceIDService.java

step:3
build again.

this works to me

11 Likes