Ionic cloud notifications event not working after ionic deploy update

Ionic push notification event listener stops working after the $ionicDeploy updates on Android, when a push notification is sent, the notification is shown on the top bar with the app open but the event is never fired.

The event works if I remove the Ionic deploy part. (When the app does not update).

This is how I’m handling the event:

$scope.$on('cloud:push:notification', showPopUp);

Ionic deploy code:

    function downloadUpdates() {
      $ionicDeploy.channel = 'dev';
      
      $ionicDeploy.check()
        .then(function(snapshotAvailable) {
          if(snapshotAvailable) {
            $ionicLoading.show({ 
              template: 'Updating...'
            })
            .then(function() {
              $ionicDeploy.download()
                .then(extractUpdate)
                .then($ionicLoading.hide)
                .then(loadUpdate);
            });
          }
        });
    }

Ionic version:

Your system information:

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.7 
ios-sim version: 5.0.8 
OS: Mac OS X El Capitan
Node Version: v6.5.0
Xcode version: Xcode 8.0 Build version 8A218a