$ionicPush not working, in little bit a different ionic project structure


#1

need help I had ionic up and running in one app, but can’t get to solve this error in another app
I get this error
Unknown provider: $cordovaPushProvider <- $cordovaPush <- $ionicPush

I have included:

<script type="text/javascript" src="vendor/ionic/js/ionic.bundle.js"></script>
<script type="text/javascript" src="vendor/ngCordova/dist/ng-cordova.js"></script>
<script type="text/javascript" src="vendor/ionic-service-core/ionic-core.js"></script>
<script type="text/javascript" src="vendor/ionic-service-push/ionic-push.js"></script>
....

My app module is like:

angular.module('app', [
    'ionic',
    'ngCordova',
    'ionic.service.core',
    'ionic.service.push',...
.run(['$ionicPlatform', '$cordovaSplashscreen', 'StateManager', 'APP_STATES', '$rootScope', '$ionicUser', /*'$ionicPush',*/ function ($ionicPlatform, $cordovaSplashscreen, StateManager, APP_STATES, $rootScope, $ionicUser/*, $ionicPush*/) { 
 ....

Am I missing something?


#2

where is your config?


#3

+1 this. Got exactly the same setup and error. I would really like to start testing push but I cant continue until this is sorted