Scott Do
Posts: 0
Joined: Fri Jun 06, 2014 11:02 am

Please let me have the device token for push notification !!!

Here are my setting for push.

Image

Image

Image

Image

I have tried several time by the way your tutorials say, but I always failed with the message, "undefined" in the device token area of the device collection DB.

Please helpe me~~

Thanks in advance for your help..

From Scott in Korea

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Please let me have the device token for push notification !!!

Hi Scott,

http://devcenter.appery.io/tutorials/...
Do you mean this tutorial? A device is registered automatically.

Or do you use RegisterDevice_service?
http://devcenter.appery.io/tutorials/...

Scott Do
Posts: 0
Joined: Fri Jun 06, 2014 11:02 am

Please let me have the device token for push notification !!!

http://devcenter.appery.io/tutorials/...
Do you mean this tutorial? A device is registered automatically.

Yes. I used that tutorial and I know that device is registered automatically. However,
I got the device ID, but I did not device token automatically. Always the message,"undefined" in the sesstion of device token in my device DB.

Or do you use RegisterDevice_service?
http://devcenter.appery.io/tutorials/...

I did not try this one. Do I have to use this one ?

Please let me know what I have to do.
Thanks in advnace for your help.

Scott

Scott Do
Posts: 0
Joined: Fri Jun 06, 2014 11:02 am

Please let me have the device token for push notification !!!

Dear Katya Yakusheva,

Thank you very much for your reply.
Hare are the answers to your questioms.

http://devcenter.appery.io/tutorials/...
Do you mean this tutorial? A device is registered automatically.

Yes. I used that tutorial and I know that device is registered automatically. However,
I got the device ID, but I did not device token automatically. Always the message,"undefined" in the sesstion of device token in my device DB.

Or do you use RegisterDevice_service?
http://devcenter.appery.io/tutorials/...

I did not try this one. Do I have to use this one ?

Please let me know what I have to do.
Thanks in advnace for your help.

Scott

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Please let me have the device token for push notification !!!

Hi Scott,

What is your device and Android version?

Scott Do
Posts: 0
Joined: Fri Jun 06, 2014 11:02 am

Please let me have the device token for push notification !!!

My device is LG-F180K and Android is 4.1.2.

I hope to hear from you soon.

Thanks.

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

Please let me have the device token for push notification !!!

Hello Scott,

Could you run this code on Push initialize event:

codesetTimeout(function() {
alert(localStorage.getItem('pushNotificationToken'));
}, 1); /code

Return to “Issues”