ios
ios copied to clipboard
Notification Listener is not working
I want to show alert when user receive a notification .
I have tried this
PushNotificationIOS.addEventListener('localNotification', (notification) => {
Alert.alert('Notification', notification.getMessage().toString());
});
But it gives me alert when user clicked the notification Pop-up. I want the alert when pop-up appears.
I want show the Alert without clicking on the Notification pop-up.
Any success in it ? As i am also facing the same
Trying to do this as well. I created a new issue.
I have the same problem.