FDuhen/fcm-blueprint--flutter

QUESTION: how to manage FirebaseMessaging.onMessage.listen

Closed this issue · 2 comments

hi, you sample only show onbackground handler that does no have any issue in version 9 but what about FirebaseMessaging.onMessage.listen? looks like that the new plugin version 9 have and unresolved issue.
i need to manage notification click event, but onforeground tap message does not work. Accessing hidden method Landroid/os/WorkSource;->add(I)Z (greylist,test-api, reflection, allowed), and FirebaseMessaging.onMessage.listen is not triggered

could you try to implent your sample with the foreground message event?

thanks a lot

Same question.

The example of the onMessage was in the base_component Widget
https://github.com/FDuhen/fcm-blueprint--flutter/blob/master/lib/commons/base_component.dart