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.