Things are working perfectly fine in case of debug mode, but after generating a release build and receiving the push notification, notificationTapped event is not coming even after tapping on the push notification.
Only getting tokenReceived notification in release build.
Kindly provide a solution for the same.
useEffect(() => {
mobileMessaging.supportedEvents.forEach(event => {
let subscription = mobileMessaging.subscribe(event, eventData => handleMobileMessagingEvent(event, eventData),);
subscriptions.push(subscription);
});
}, [subscriptions]);
Things are working perfectly fine in case of debug mode, but after generating a release build and receiving the push notification, notificationTapped event is not coming even after tapping on the push notification.
Only getting tokenReceived notification in release build.
Kindly provide a solution for the same.
useEffect(() => {
mobileMessaging.supportedEvents.forEach(event => {
let subscription = mobileMessaging.subscribe(event, eventData => handleMobileMessagingEvent(event, eventData),);
subscriptions.push(subscription);
});
}, [subscriptions]);