Using Cordova (ionicframework+angularjs ) Build to use a push notifications requests for Android devices.When doing registration The successHandler() is fire
successHandler()
onNotification must be have scope in window.
window.onNotification = function(){ }