Page 1 of 1

Tablet on devices collection returns null

Posted: Wed Nov 20, 2013 12:37 pm
by Giannis Pelelis

I registered a tablet on devices collection of a database ,which normally returns first a "null" on deviceId (eg. {"deviceId":null;9be046b129549304}
When I try to update that device (using put) I get
code"description":"Device id: null not found"/code

Generally speaking update method works pretty well with mobile devices.
I also tried to send encoded url,but also fails to update ...


Tablet on devices collection returns null

Posted: Wed Nov 20, 2013 1:14 pm
by Maryna Brodina

Hello! Sorry, it's a bug. We'll fix it.


Tablet on devices collection returns null

Posted: Wed Nov 20, 2013 1:42 pm
by Giannis Pelelis

This might work for a while on android

pre
code var deviceID = device.uuid;
var str = deviceID.slice(deviceID.indexOf(&quot")+1); /code
/pre

As I see I only need the last digits of uuid to make it work


Tablet on devices collection returns null

Posted: Wed Nov 20, 2013 1:53 pm
by Maryna Brodina

Thank you for update!