Trigger something when user clicked on notification badge?

Below code doesn’t work I wonder why. I can’t find it in ionic push documentation, I need help.

var push = new Ionic.Push({
“debug”: true
});

      push.register(function(obj) {
        //save to db           
        
        
      });
      push.notificationCallback(function(data){
        console.log(data); // doesn't work
      })
1 Like