David5542897
Posts: 0
Joined: Wed Feb 13, 2013 6:54 am

Getting the device UUID

Hi,
Is there a way of getting the device's UUID (or equivalent for Android)?
I know it's supported on phonegap, but how can I get the data on Tiggzi?

Regards,
David.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Getting the device UUID

Use PhoneGap API - it's automatically included in the project (http://docs.tiggzi.com/getting-started).

David5542897
Posts: 0
Joined: Wed Feb 13, 2013 6:54 am

Getting the device UUID

Thanks for the prompt reply.

I want to store the uuid in localStorage on page load.
I put this in the JS window -

codevar string = device.uuid;
localStorage.setItem('device_uuid', string);
/code

However, the page will not load (stuck on the ajax spinning icon).
I'm testing both on my desktop browser and on my iphone browser.

Is there something I'm missing?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Getting the device UUID

Hello! It won't work in browser. You would need to install app on device.

pafowkes
Posts: 0
Joined: Fri Apr 12, 2013 1:42 pm

Getting the device UUID

Just in case somebody else happens to look for this question I was trying to do this myself, seems you need to add the event on 'device ready' as it doesnt work on page load.

rajiv gupta
Posts: 0
Joined: Wed Sep 10, 2014 9:39 am

Getting the device UUID

<!DOCTYPE html SYSTEM

Code: Select all

 Device Properties Sample 

' +
'Device Cordova: ' + device.cordova + '
' +
'Device Platform: ' + device.platform + '
' +
'Device UUID: ' + device.uuid + '
' +
'Device Model: ' + device.model + '
' +
'Device Version: ' + device.version + '
';
}

Code: Select all

  Loading device properties... 
rajiv gupta
Posts: 0
Joined: Wed Sep 10, 2014 9:39 am

Getting the device UUID

trying this but unable to get device configuration..please anybody help me to getting device information

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Getting the device UUID

Hello Rajiv,

Unfortunately it looks like that your code is displayed in corrupted way. Could you please repeat it with using tag code?

Daniel Wong
Posts: 0
Joined: Sat Oct 11, 2014 7:47 pm

Getting the device UUID

It seems that accessing device.uuid in the app will cause the page to hang.

I put a simple javascript like this:

alert("device uuid: " + device.uuid);

when a page is load. It hangs even when I install the app on the phone itself. Can we have better example on how this works?

Thanks

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Getting the device UUID

Hi Daniel,

Try using "deviceready" as it's in example in the PhoneGap documentation: http://docs.phonegap.com/en/3.3.0/cor...

Return to “Issues”