I am trying to figure out if I can cancel (clear) an FCM notification from the notification tray on both iOS and Android.
An FCM RemoteMessage arrives with a RemoteNotificaiton class that contains an AndroidNotification class. This class only contains a tag, and not an ID. An AppleNotification does not contain a tag or an id.
The flutter_local_notifcations plugin requires an integer ID, but FCM does not provide an integer ID with its notification.
Is there anyway to cancel an FCM notification from the system tray, in flutter code only?
from How do I cancel and FCM message using flutter_local_notifcations plugin?
No comments:
Post a Comment