getDeviceSerialNumber method
Fetches the device's serial number. Please note the purpose of this API is to administrate the device (e.g. generating Certificate Sign Requests for device-wide certificates). This API may not be used for tracking devices without the consent of the device's administrator. If the current user is not affiliated, returns an empty string. |callback| : Called with the serial number of the device.
Implementation
Future<String> getDeviceSerialNumber() async {
var $res = await promiseToFuture<String>(
$js.chrome.enterprise.deviceAttributes.getDeviceSerialNumber());
return $res;
}