driftyco/ng-cordova — pull request #407 by cquartier (2014-10-30 17:57:43+00:00)
Title: Angular event broadcast for push notifications

I've found in my own application that the best way to handle receiving a push notification is by utilizing Angular's $scope/$rootScope event system. By broadcasting the notification from $rootScope, other controllers/services should be able to listen for the event and handle it accordingly. You can override this feature by declaring your own handler in the config object's "ecb" key.