I set up the basics for push notifications and I am testing in with Android for the moment.
I followed those steps: http://ionicframework.com/docs/v2/native/push/.
It works fine on an emulator, but not on a real device.
Not even PushNotification seems to work.
When I tried the following on a real device:
Push.hasPermission((data) => {
alert('checking permission');
if (data.isEnabled) {
alert('isEnabled');
} else {
alert('is not Enabled');
}
});
It gave me nothing at all. But again, on a real device, it gives me all the outputs.
I was hoping it could be about permissions, but I am starting to doubt it.
When I alert Push, it doesn’t have anything in it when I’m on a real device.