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.
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.