title: Expo notification doesnt fire method when app is killed/closed
body: <p>im using react native expo and push notification works fine when app is running or in background but with the app is close. it doesnt call the method to handle the notification. I need to redirect to detail page. I tried to use function compoents and class components, tried to migrade to legacy notification and the new one.</p>
  <pre><code>import React, {useState, useEffect, useRef} from 'react';
  import {
      Image, ScrollView,
      StyleSheet, Text, TouchableOpacity, Platform,
      View, Linking,
  
  } from 'react-native';
  import * as Notifications from &quot;expo-notifications&quot;;
  
  
  const HomeScreen = (props) =&gt; {
    useEffect(() =&gt; {
          notificationListener.current = Notifications.addNotificationReceivedListener(notification =&gt; {
          
              const {request, date} = notification ||{}
              const {content} = request ||{}
              const {data} = content ||{}
              const {annKey,type} = data ||{}
             
              if(annKey) {
                //  navigation.navigate('Detail', {annKey,  updateFeed: true, onSelect},)
              }
           
  
          });
  
  
          responseListener.current = Notifications.addNotificationResponseReceivedListener(response =&gt; {
             
  
              const {notification} = response ||{}
              console.log(notification);
              const {request, date} = notification ||{}
              const {content} = request ||{}
              const {data} = content ||{}
              const {annKey, type} = data ||{}
  
  
              if(annKey){
                 navigation.navigate('Detail', {annKey,  updateFeed: true, onSelect},)
              }
  
            
          });
  
          return () =&gt; {
              Notifications.removeNotificationSubscription(notificationListener);
              Notifications.removeNotificationSubscription(responseListener);
          };
      }, []);
  
  }
  
  export default HomeScreen;
  </code></pre>