# Push Notification get push data after event click

**URL:** <https://forum.ionicframework.com/t/push-notification-get-push-data-after-event-click/191796>\
**Category:** Capacitor\
**Created:** [June 25, 2020, 4:44pm UTC](https://forum.ionicframework.com/t/push-notification-get-push-data-after-event-click/191796 "2020-06-25T16:44:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joao-correia](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@joao-correia](https://forum.ionicframework.com/u/joao-correia)\
**Post date:** [June 25, 2020, 4:44pm UTC](https://forum.ionicframework.com/t/push-notification-get-push-data-after-event-click/191796/1 "2020-06-25T16:44:32Z")

</div>

Hi.  
I’m trying to get the Payload Data from a click of push notification, but for some reason android no found any listeners for pushNotificationActionPerformed.

Server code - Push Payload (the push is sent with cURL lib from PHP, and i want to access the content and id fields) :

```auto
$fields = array(
            "to" => $token,
            "notification" => array (
                "title" => $title,
                "body" => $body
            ),
            "data" => array (
                'type' => $contentType,
                'id' => $contentId
            )
        );

```

In the Ionic Code:

```auto
PushNotifications.requestPermission().then( result => {
  if (result.granted) {
    PushNotifications.register();
  }
});

PushNotifications.addListener('registration',
  async (token: PushNotificationToken) => {
    console.log("device registration");
});

PushNotifications.addListener('registrationError',
  (error: any) => {
    console.log('Error on registration: ' + JSON.stringify(error));
});

PushNotifications.addListener('pushNotificationReceived',
  (notification: PushNotification) => {
    alert('Push received: ' + JSON.stringify(notification));
  }
);

PushNotifications.addListener('pushNotificationActionPerformed',
  (notification: PushNotificationActionPerformed) => {
    alert('Push action performed: ' + JSON.stringify(notification));
  }
);

```

If for some reason this is not the right direction for my case, feel free to say.

Thanks in advance
