Cordova callbacks when a push notification is received/dismissed/opened

Hey WonderCommunity!

I need a callback done by my Cordova app when a Push Notification is received, opened or dismissed by the user. Are any of these 3 possible with Wonderpush?

Thanks for your replies in advance!

Hi,

Our Cordova SDK currently only supports knowing when the notification is opened (or received if it’s a data, silent notification).
Simply listen to the wonderpush.notificationOpen document event. You can read the actual notification payload using event.notification. You can test if event.notificationType == "data" to filter for data notifications, if needed.

Best,