Click here to Skip to main content
15,891,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Get IMEI or Unique Serial number of mobile device using JQuery

What I have tried:

Not getting any solution on google. Please suggest the solution
Posted
Updated 6-Nov-16 17:17pm

1 solution

Access to hardware is restricted when you are using general browsers, that type of information can only be accessed from native code running on the device (or with intermediaries like Cordova or Phonegap etc.)
 
Share this answer
 
Comments
lav naphade 7-Nov-16 2:01am    
Thanks for your reply.
Can i use Cordova or Phonegap in asp.net to access the hardware information of mobile device like device name, model no. etc.
Mehdi Gholam 7-Nov-16 2:11am    
cordova etc. are client side (mobile side) technologies so you can extract the information then send it via webservice etc. to your server.
lav naphade 7-Nov-16 2:18am    
Thanks.. Can you provide the sample code for asp.net using cordova
Mehdi Gholam 7-Nov-16 2:21am    
Google is your friend.
lav naphade 7-Nov-16 2:24am    
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: ' + 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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900