Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Advanced Android in Kotlin: Firebase Messaging 1.2 [Step #][description] #14

@hhyeok1026

Description

@hhyeok1026

Describe the problem
A clear and concise description of what the problem is.

The following error lint occurs in MyFirebaseMessagingService.kt file,
The build fails.
=>
'onMessageReceived' overrides nothing
'onNewToken' overrides nothing

In my case, I changed fcm message to the latest version,

When looking at the FirebaseMessagingService file that inherits from MyFirebaseMessagingService class,
The method takes a nonnull parameter.

solution
So the overriding method,
You need to remove the nullable question marks in onMessageReceived and onNewToken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions