Ionic Push - Maddening


#1

I’ve been trying to get Ionic Push working on a physical device for a while, and I cannot seem to make it happen. I followed the tutorials to a “T,” and no dice on the phone. I debugged via Safari and I’m seeing this error when I run $ionicPush.register:

Error: undefined is not a function (evaluating ‘$window.plugins.pushNotification.register(function (token) {
q.resolve(token);
}, function (error) {
q.reject(error);
}, config)’)

At first I thought maybe its because I didn’t include the PushNotification.js link in my index.html, but when I include that I still get the error. Do I even need to include it? Does it need to be included in a specific order?


#2

Nevermind. I had installed Pushwoosh and the plugins were conflicting - Pushwoosh has a method named “registerDevice,” not “register” so my register call was tanking.


#3

If you have any other problems with our services, you can ask questions in this gitter chat: https://gitter.im/driftyco/ionic-io-testers

Our team members working on these services are in there to answer questions & help. I don’t know how much help it would’ve been in this particular case, but just so you have it. :smile: