Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Push Notification Token

Hello.

Token it's "Session-Token".

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Push Notification Token

I'll update about how to get a token.

Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Push Notification Token

Thank you!

Sergey Kozyr
Posts: 0
Joined: Tue Apr 30, 2013 2:55 pm

Push Notification Token

Token is stored in localStorage variable "pushNotificationToken". It's created automatically on device after "Push initialize" event is dispatched.

Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Push Notification Token

OK. That wasn't clear from the instructions. Thank you for clarifying.

Quarenta
Posts: 0
Joined: Tue Apr 15, 2014 12:36 pm

Push Notification Token

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Notification Token

Hello!

Let's continue here https://getsatisfaction.com/apperyio/...

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Push Notification Token

if you will install the app in the device..It will work..
With Appery.IO tester, it will not work.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Push Notification Token

Hello Himanshu,

Sorry, not sure I understand, do you need Support Team to help

Return to “Issues”