A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Upon device registration, how do I get "token" to NOT be undefined?

I am unable to initialize push notifications or register the token in the db. When a user loads the app on their physical device, a device is recorded in the database. However, token is undefined. I've tried following steps listed in other support threads to get the device token, but every single time it is undefined.

What are the correct steps?

I've followed the tutorial and have tried to print code when the push is initialized, but so far I can't get that event to work.

How do I register the device and get a push to send? This tutorial (https://devcenter.appery.io/documenta...) doesn't help much.

Image

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Upon device registration, how do I get "token" to NOT be undefined?

Hi Ave -

The 'Device ready' event can be initialized only on a device, you can obtain your Device ID in installed app on the device.

Return to “Issues”