Page 1 of 1

Cant retrieve uuid

Posted: Sun Jan 27, 2019 8:06 pm
by Deon

Hi

I am trying to display the uuid to the user but it does not work.

I get uuid on device ready like this....

Apperyio.storage.myLocation.update("$['uuID']", device.uuid);

Then I need the user to see uuid on button click event like this.
var dev = Apperyio.storage.myLocation.get("$['uuID']");
alert('Use the following uuid to register... ',dev);

The alert displays with the text but does not show the uuid.


Cant retrieve uuid

Posted: Mon Jan 28, 2019 8:01 am
by Serhii Kulibaba

Hello Deon,

It might be not ready on the device ready event. Please add the interval to check is uuid ready or not. Right after it is not empty - set that value to the Storage variable