MobileCRM.Platform.getDeviceInfo - Resconet/JSBridge GitHub Wiki

Gets the device information.

Arguments

Argument Type Description
success function(result) A callback function for successful asynchronous result. The result will carry a MobileCRM._DeviceInfo object.
failed function(error) A callback function for command failure. The error argument will carry the error message.
scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.

This example demonstrates how to get device info MobileCRM._DeviceInfo object.

// Request device info object
MobileCRM.Platform.getDeviceInfo(function (info) {
	/// <param name="info" type="MobileCRM._DeviceInfo"></param>
	var result = "Device Info : \n";
	for (var prop in info) {
		result += prop + " : " + info[prop].toString();
		+"\n";
	}
	MobileCRM.bridge.alert(result);
}, MobileCRM.bridge.alert);
⚠️ **GitHub.com Fallback** ⚠️