android-kotlin-notifications-fcm icon indicating copy to clipboard operation
android-kotlin-notifications-fcm copied to clipboard

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

Open hhyeok1026 opened this issue 2 years ago • 0 comments

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.

hhyeok1026 avatar May 28 '22 01:05 hhyeok1026