Ionic.io full push notification not working (Keep getting TypeError: PushNotification.init is not a function.)


#1

I followed the following setup. If dev_push is false, I keep getting the below error. If dev_push is true, there is no error. Is this a bug in the Beta or what?

8 715050 error TypeError: PushNotification.init is not a function. (In ‘PushNotification.init(t._config.pluginConfig)’, ‘PushNotification.init’ is undefined), http://192.168.1.11:8100/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js, Line: 3

ionic config set dev_push false
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
var push = new Ionic.Push({
“debug”: true
});

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

});
})


#2

I am having the same issue as well! This seems to be a problem with using Ionic.Push and the phonegap push plugin.
“PushNotification.init is not a function.”


#3

i have the same error on ly in ios, on android it works fine. can you help me?
[507:58209] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = [“PushNotification509927292”,“PushNotification”,“init”,[{“ios”:{“sound”:true,“badge”:true},“android”:{“iconColor”:"#ec7416"}}]]


#4

how is the issue now? sigh I’m getting the same error!