Below code doesn’t work I wonder why. I can’t find it in ionic push documentation, I need help.
var push = new Ionic.Push({
“debug”: true
});
push.register(function(obj) {
//save to db });
push.notificationCallback(function(data){ console.log(data); // doesn't work })