flutter – FirebaseMessaging.instance.getInitialMessage return null message when I click on notification

I use Firebase messaging in my Flutter app , when I click on the notification background , I want to go to another specific screen so FirebaseMessaging.instance.getInitialMessage() triggered but message returns null . And for foreground notification I use onMessageOpenedApp when I click on the notification , onMessageOpenedApp doesn’t trigger . Here is the object … Read more