I am trying to register a device for push notifications. I followed this tutorial http://devcenter.appery.io/tutorials/... and I have put the correct API Key and Sender ID. I also put it the following code on Device Ready screen and created corresponding localStorage variables.
pre
setTimeout(function() {
alert(localStorage.getItem('pushNotificationDeviceID'));
}, 1);
setTimeout(function() {
alert(localStorage.getItem('pushNotificationToken'));
}, 1);
/pre
However, the problem is that I keep getting "undefined" for pushNotificationToken. I can get the DeviceID just fine and it saves it to the database. Any help please?