Hi all,
I'm trying to use ionic-push-notification feature. I am carefully following the push from Scratch tutorial that you can find here: http://docs.ionic.io/docs/push-from-scratch
I always get the same error: Ionic is not defined, when I'm implementing this piece of code to register to the Push:
`.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
var push = new Ionic.Push({
"debug": true
});
push.register(function(token) {
console.log("Device token:",token.token);
});`
Thanks if someone can help me.