Ionic instance for dev-push

Im trying to setup dev-push on my app, but the quickstart guide tells me to add this code:

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    var push = new Ionic.Push({
      "debug": true

    push.register(function(token) {
      console.log("Device token:",token.token);

but I get a

ReferenceError: Can't find variable: Ionic

How do I initialise the Ionic variable?

I have the same problem. Did you solve it?

I found the solution, I guess. When you install the web client it supposed to update your index.html and your app.js module dependencies. But for some reasons it doesn’t, sometimes. I wrote about it right here: