Change the following code to ng-cordova.js :
//config.ecb = 'angular.element(' + injector + ').injector().get(\'$cordovaPush\').onNotification'; config.ecb = "angular.element(" + injector + ").injector().get('$cordovaPush').onNotification";
and then set the parameter configuration object as follows:
var options = { android: { senderID: "789175757493", ecb:"onNotification", forceShow: true }, }
It will display notifications in the notification box when you open the application.
source share