Ionic io push notifications call back


I’m trying to use the push notification service. It works when the phones on standby/the apps not open - however my on received isnt fireing when a notification comes through.

I have this in my app.js:

  $ionicPlatform.ready(function() {
            $'firing the run code..');
            var push = new Ionic.Push({
                "debug": false,
                "onNotification": function(notification) {
                    var payload = notification.payload;
                    console.log(notification, payload);
                    $"SOMETHING HAS HAPPENED");
                "onRegister": function(data) {
                "pluginConfig": {
                    "ios": {
                        "badge": true,
                        "sound": true
                    "android": {
                        "iconColor": "#343434"

And the register I just have on the login:

var push = new Ionic.Push();
                        var callback = function(pushToken) {


However, it does register, i do get the callback token but I never get anything in onNotification