expo notification respons Received listener not working

Please provide the following:

  1. SDK Version: 47
  2. Platforms(Android/iOS/web/all): Android
  3. Notifications

My app notification Received listener, not listener any events. On press on notification app just closed both production and expo go. addNotificationReceivedListener is working.

useEffect(() => {
    try {
      const subscription =
        Notifications.addNotificationResponseReceivedListener((response) => {
          const url = response.notification.request.content.data.url;
          console.log("url", url);
        });
      console.log("subscription", subscription);
      return () => subscription.remove();
    } catch (err) {
      console.log(err);
    }
  }, []);

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