Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

RegisterDevice token and deviceId

This page (http://docs.appery.io/documentation/b...) lists token and deviceId as parameters for the api call, yet I cannot find any indication on how to obtain these values.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

RegisterDevice token and deviceId

Hello Tiago,

The deviceId and token parameters are automatically generated device-side.
Please look through this section http://docs.appery.io/documentation/b...

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

RegisterDevice token and deviceId

Does that mean I can leave these values empty and it will work properly?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

RegisterDevice token and deviceId

Where exactly are you trying to fill with these values?

When you set up Pushes you do not need this information, but as soon as app is installed you'll have them in Database and then will be able to use in Services and so on.

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

RegisterDevice token and deviceId

You mean to say the device is registered automatically even I don't directly add a register device service to my app?

My devices table has a custom column, and I'd like to set a default value to that when registering a device. How would I go about that?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

RegisterDevice token and deviceId

[quote:]You mean to say the device is registered automatically even I don't directly add a register device service to my app? [/quote]
No, you should add the Service, but do not specify token and deviceId.

[quote:]
My devices table has a custom column, and I'd like to set a default value to that when registering a device. How would I go about that?[/quote]
In this case call the Update service.

Return to “Issues”