# $ionicPush notificationReceived event

**URL:** <https://forum.ionicframework.com/t/ionicpush-notificationreceived-event/56892>\
**Category:** ionic-v1\
**Created:** [July 7, 2016, 4:41pm UTC](https://forum.ionicframework.com/t/ionicpush-notificationreceived-event/56892 "2016-07-07T16:41:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnpallares](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cnpallares/32/96485_2.png) [@cnpallares](https://forum.ionicframework.com/u/cnpallares)\
**Post date:** [July 7, 2016, 4:41pm UTC](https://forum.ionicframework.com/t/ionicpush-notificationreceived-event/56892/1 "2016-07-07T16:41:58Z")

</div>

Hi everyone!

There are anyway to fire event when i receive a notification??

My code is something like this:

> $ionicPlatform.ready(function() {  
> $ionicPush.init({  
> “debug”: true,  
> “onNotification”: function(notification) {  
> var payload = notification.payload;  
> console.log(notification, payload);  
> },  
> “onRegister”: function(data) {  
> console.log(data.token);  
> }  
> });

> $ionicPush.register();  
> });

and i need to find some way to make something just after notification is received.

Actually im only capable to catch the click with the “onNotification” method…

Some help?? Thank you 🙂
