Ionic Push notifications click actions

Hi

Im using phonegap push plugin to receive push notification. I can able to receive multiple notifications using “notId”. But i have an issue in handling individual notifications.I need to get the details of a particular notification when user click on it.

Is there a way to handle click events in push notifications?

Yes you can handle it in push.on(‘notification’,cb) function. Have a look here

Thanks for the reply. This gets automatically called once the notification is received when the app is open. But that should not happen. And also i have to re direct to some other states on clicking the notifications.

1 Like

Hey, did you figure out how to handle a click event for a push notification? I want to do this in order to redirect the user to a specific page when clicking on a push notification