title: Flutter : flutter_local_notifications onSelectNotification not working when app is terninated
body: <p>flutter_local_notifications is working fine when the app is in foreground or background</p>
  <p>but when the app is terminated</p>
  <p>onSelectNotification not working as expected , instead it's just open the application</p>
  <pre><code>static void initializeLocalNotification() async {
      FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
          FlutterLocalNotificationsPlugin();
      const AndroidInitializationSettings initializationSettingsAndroid =
          AndroidInitializationSettings('ic_launcher');
      final IOSInitializationSettings initializationSettingsIOS =
          IOSInitializationSettings(
        requestSoundPermission: false,
        requestBadgePermission: false,
        requestAlertPermission: false,
      );
  
      final InitializationSettings initializationSettings =
          InitializationSettings(
        android: initializationSettingsAndroid,
        iOS: initializationSettingsIOS,
      );
      await flutterLocalNotificationsPlugin.initialize(initializationSettings,
          onSelectNotification: (String payload) async {
        SharedPreferences prefs = await SharedPreferences.getInstance();
        var res = await prefs.setString(kNotificationPayLoad, payload);
        // navigatorKey.currentState
        //     .push(MaterialPageRoute(builder: (_) =&gt; LoginScreen()));
        // navigatorKey.currentState.pop();
      });
  
      await flutterLocalNotificationsPlugin
          .resolvePlatformSpecificImplementation&lt;
              IOSFlutterLocalNotificationsPlugin&gt;()
          ?.requestPermissions(
            alert: true,
            badge: true,
            sound: true,
          );
    }
  </code></pre>