Expo 49 on Android.
a) App is in killed state
b) A firebase message (push notification) is displayed
c) User clicks the notification
d) App opens - but I can’t receive the notification (rn-firebase works)


import * as Notifications from 'expo-notifications';
import messaging from '@react-native-firebase/messaging';

function App( props )
  // does not work: always empty
  const lastNotificationResponse = Notifications.useLastNotificationResponse();
  console.log( 'useLastNotificationResponse:', lastNotificationResponse );

  React.useEffect( () => {
    messaging().getInitialNotification().then(remoteMessage => {
      // quering via `@react-native-firebase` works
      console.log( 'getInitialNotification:', remoteMessage );
  }, []);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.