Cordova Push - $cordovaPush is undefined for 'get' method

Nice. We actually found a solution that did NOT require a hack which might interest you :smile:

Just set ecb in your config like this:

"ecb": "angular.element(document.body).injector().get('$cordovaPush').onNotification" 

No hack :smile:

3 Likes