Page 1 of 1

deviceID or token when posting to Devices

Posted: Sat May 30, 2015 5:42 am
by Paul Medawar

Hi,

I've set up a checklistgroup to assign "channels" to the devices collection. I'm using "deviceID" as the identifier for the row, but I'm wondering if I should be using "token" instead seen as it stays consistent even if the app is deleted then re-installed?

kind regards

Paul


deviceID or token when posting to Devices

Posted: Sat May 30, 2015 9:56 am
by Serhii Kulibaba

Hello Paul,

token is unique app instance identifier
deviceId is unique device identifier

More information here:
https://devcenter.appery.io/documenta...
https://devcenter.appery.io/documenta...

So if you reinstall app, appery.io will update token value


deviceID or token when posting to Devices

Posted: Mon Jun 01, 2015 7:29 am
by Paul Medawar

Hi Sergiy,

"deviceId is a unique device identifier". However I am finding that the phone is assigned a new deviceId if I delete then re-install the app.

This is not a problem, if this is also automatically updated in the "devices" section of the predefined collections.

So I suppose my question is, can I have confidence that the deviceId in the collection is always in sync with the current deviceId of a device?


deviceID or token when posting to Devices

Posted: Wed Jun 03, 2015 8:32 pm
by Serhii Kulibaba

Yes Paul,

It is impossible to have the same deviceId for different devices.