title: how to open particular screen on clicking on push notification for flutter
body: <p>I am trying to achieve  open specific screen on clicking push notification and my payload looks like this:</p>
  
  <pre><code> var payload = {
          notification: {
              title: notificationTitle,
              body: notificationMessage,
              click_action:"/screena",sound:"default",
          }
      };
  </code></pre>
  
  <p>I am getting notification but I am unable to catch notification click event in flutter how to catch it. I am using flutter messaging</p>
  
  <p><a href="https://github.com/flutter/plugins/tree/master/packages/firebase_messaging" rel="noreferrer">https://github.com/flutter/plugins/tree/master/packages/firebase_messaging</a></p>
  
  <p>and my firebase push message service code looks like this</p>
  
  <pre><code> pushMessagingService() async{
  messagingreference.configure(
  onMessage: (Map&lt;String, dynamic&gt; message) {
  
    print("I am here in on message");
    print(message);
  },
  onLaunch: (Map&lt;String, dynamic&gt; message) {
    print("I am here onLaunch");
    print(message);
  },
  onResume: (Map&lt;String, dynamic&gt; message) {
    print("I am hereonResume");
    print(message);
  },
  );
    messagingreference.requestNotificationPermissions(
    const IosNotificationSettings(sound: true, badge: true, alert: true));
   messagingreference.onIosSettingsRegistered
    .listen((IosNotificationSettings settings) {
  print("Settings registered: $settings");
   });
   messagingreference.getToken().then((String token) async {
  
  
  print(token);
   });
   }
  </code></pre>
  
  <p>here I can get the message as @xqwzts  said in on message when my app is in the foreground but my question is how to catch click event from push notification raised in the system tray and navigate to the required screen.</p>