Please provide the following:
- SDK Version: 47
- Platforms(Android/iOS/web/all): Android
- 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);
}
}, []);