When I'm opening the Android version of my app upon receiving a notification when the app is killed, I'm experiencing some inconsistency. onNotification is being triggered, and I can see the deeplink being printed out to the console, but the following code inside the handler is not being called unless I'm stepping through with a debugger. It seems as if only the first line in the onNotification handler is being called.
My onNotification handler:
onNotification: (notification => {console.log('push sent: ' + notification.deeplink) //shows up consistentlyalert('Push sent '+notification.deeplink) //only shows when stepping through debuggerif(notification.deeplink) {showMessages({...passProps, url: notification.deeplink})}}),
When I'm opening the Android version of my app upon receiving a notification when the app is killed, I'm experiencing some inconsistency. onNotification is being triggered, and I can see the deeplink being printed out to the console, but the following code inside the handler is not being called unless I'm stepping through with a debugger. It seems as if only the first line in the onNotification handler is being called.
My onNotification handler:
onNotification: (notification => {
console.log('push sent: ' + notification.deeplink) //shows up consistently
alert('Push sent '+notification.deeplink) //only shows when stepping through debugger
if(notification.deeplink) {
showMessages({...passProps, url: notification.deeplink})
}
}),