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?