firebase-messaging - Fatal: failed to find callback

前端 未结 4 885
情话喂你
情话喂你 2021-01-01 14:11

I\'m trying to use FCM messaging and keep getting this error.

E/FlutterFcmService( 3684): Fatal: failed to find callback

Below is the code I\'ve

4条回答
  •  萌比男神i
    2021-01-01 14:34

    This error message is coming from startBackgroundIsolate which is used for allowing handling background messages. If you don't want to handle background messages then you can safely ignore this error message. Otherwise, you need to set up a callback for handling background messages as described here

    If your callback is not executed when clicking on the notification then it's because you didn't set click_action property of the message to FLUTTER_NOTIFICATION_CLICK

提交回复
热议问题