I have the following code:
var push = new Ionic.Push({
"debug": true
});
push.register(function(token) {
console.log("Device token:",token.token);
});
Unfortunately the register callback is never called (nothing gets logged).
I installed everything correctly and set dev_push
to true
Registering users works perfectly so I don’t know what’s wrong.
In the console I get the following output: Ionic Push: – "register"
but nothing else…
Any thoughts?