Flutter - FCM , Is there a way to refresh the app when the notification arrives on foreground state of the app?

Viewed 591

[ Note :- I've used local notification to display the notification when the app is in the foreground state but I want to refresh the app on it's arrival.]

I want to refresh the app when it detects the notification.

FirebaseMessaging.onMessage.listen((RemoteMessage message) async {
  showNotification(message.notification.title, message.notification.body,
      message.data["logic_flow"]);
});
0 Answers
Related