TypeError: Cannot call method 'onReady' of null Ionic.io

hello , i’m working on a app that will integrate the ionic push notification , so i started with demo provided , but when i try to register for the push i get this error :

"TypeError: Cannot call method ‘onReady’ of null
I/chromium(21359): at new e (file:///android_asset/www/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js:2:30167)

here is my controller code

      var push = new Ionic.Push({
        "debug": true

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

can any one help me ??

Please, help me if you could solve it.

Just a wild guess, but I’m triggered by ‘Chromium’ in the output. Are you running this on a real device or a browser?
Plugins mostly only work well from a real device, especially push notification plugin.

I am facing the same issue. Did you get this to work @hatimane ?