I want to find out the unique device ID (for tablet/laptop/Kiosk) just like we have IMEI number for mobile phones. I know there is a device api but it wont give the unique id of the device that is logged on. We have certain requirements to map certain plants based on device. Is it possible and how using SAP UI5 application?
Asked
Active
Viewed 1,014 times
2 Answers
0
No solution, for JavaScript through the browser. There are solutions if it is installed as a native app (like with PhoneGap - https://cordova.apache.org/docs/en/1.5.0/phonegap/device/device.uuid.html)
<!DOCTYPE html>
<html>
<head>
<title>Device Properties Example</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
<script type="text/javascript" charset="utf-8">
// Wait for PhoneGap to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
//
function onDeviceReady() {
var element = document.getElementById('deviceProperties');
element.innerHTML = 'Device Name: ' + device.name + '<br />' +
'Device PhoneGap: ' + device.phonegap + '<br />' +
'Device Platform: ' + device.platform + '<br />' +
'Device UUID: ' + device.uuid + '<br />' +
'Device Version: ' + device.version + '<br />';
}
</script>
</head>
<body>
<p id="deviceProperties">Loading device properties...</p>
</body>
</html>

Michał Majer
- 263
- 2
- 7
0
You can not get IMEI from browser, details are given before here.
You can not get client MAC address if you are not in same network, details are here.
You can use device API with running your app in Fiori Client for getting IMEI.
Another option may be using device location for determining plantd.

mkysoft
- 5,392
- 1
- 21
- 30