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.
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.
Use PhoneGap API - it's automatically included in the project (http://docs.tiggzi.com/getting-started).
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?
Hello! It won't work in browser. You would need to install app on device.
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.
<!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...
trying this but unable to get device configuration..please anybody help me to getting device information
Hello Rajiv,
Unfortunately it looks like that your code is displayed in corrupted way. Could you please repeat it with using tag code?
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
Hi Daniel,
Try using "deviceready" as it's in example in the PhoneGap documentation: http://docs.phonegap.com/en/3.3.0/cor...