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.
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/
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.
Hello Tiago,
The deviceId and token parameters are automatically generated device-side.
Please look through this section http://docs.appery.io/documentation/b...
Does that mean I can leave these values empty and it will work properly?
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.
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?
[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.