I followed the tutorial and created a test APP and I can send my PUSH successfully. When tried to implement the same in my LIVE app I am getting Token value as "UNDEFINED" in device collections.
When I try to send out PUSH messages, I get error "invalidRegistration" and the row in the collection with undefined token is deleted.
As suggested in previous suggestions in this forum, I added
setTimeout(function() {
alert(localStorage.getItem('pushNotificationDeviceID'));
alert(localStorage.getItem('pushNotificationToken'));
}, 1000);
I get DeviceID but Token is "Undefined" !!!!
I double checked Sender ID and API Key, they all are same is defined in GOOGLE.
Any help is much apprenticed.
-Vibhu