Click here to Skip to main content
15,747,059 members

Comments by lav naphade (Top 4 by date)

lav naphade 7-Nov-16 2:24am View    
Today i was tried below code but it is not working .. could use suggest the steps.

<!DOCTYPE html>

<title>Device Properties Example

// Wait for Cordova to load
document.addEventListener("deviceready", onDeviceReady, false);

// Cordova is ready
function onDeviceReady() {
var element = document.getElementById('deviceProperties');

element.innerHTML = 'Device Name: ' + + '<br />' +
'Device Cordova: ' + device.cordova + '<br />' +
'Device Platform: ' + device.platform + '<br />' +
'Device UUID: ' + device.uuid + '<br />' +
'Device Version: ' + device.version + '<br />';

Loading device properties...

Error: device is undefined
lav naphade 7-Nov-16 2:18am View    
Thanks.. Can you provide the sample code for using cordova
lav naphade 7-Nov-16 2:01am View    
Thanks for your reply.
Can i use Cordova or Phonegap in to access the hardware information of mobile device like device name, model no. etc.
lav naphade 19-Mar-15 5:13am View    
Hi Ryan,
I have debuged the code, i have getting the time out expired after connecting to the device. please can you suggest how to resolve the this issue.