[ 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"]);
});