Push Notification Token
Hello,
I'm a little confused on the Push Notification set up. I'm reviewing this tutorial: http://docs.appery.io/tutorials/sendi...
It explains to use Javascript to get the deviceID, but where does the token come from?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
I'm a little confused on the Push Notification set up. I'm reviewing this tutorial: http://docs.appery.io/tutorials/sendi...
It explains to use Javascript to get the deviceID, but where does the token come from?
Hello.
Token it's "Session-Token".
I'll update about how to get a token.
Thank you!
Token is stored in localStorage variable "pushNotificationToken". It's created automatically on device after "Push initialize" event is dispatched.
OK. That wasn't clear from the instructions. Thank you for clarifying.
Hello. I created an app and followed the steps for retrieving the device ID and it worked. But i'm not sucessful on retrieving the device token, is returns "undefined".
First i attached to the "Device Ready" event and later to the "Push Initialize" and nothing happened.
Any help?
Hello!
Let's continue here https://getsatisfaction.com/apperyio/...
if you will install the app in the device..It will work..
With Appery.IO tester, it will not work.
Hello Himanshu,
Sorry, not sure I understand, do you need Support Team to help