getDeviceId

Device

Returns the unique id of the device.

$m.getDeviceId(function(response){

     juci.controls.get("device-id").value(response.result);

});

Syntax

        $m.getDeviceId(fp_callback)

Parameters

fp_callback

function (optional)

Function to execute when the device id is read. The function receives a response object as parameter with the following properties,

  1. result - {number}. Device id.
  2. error - {Object}. Available when the code is 0. The error object contains,
  1. message - {String}. A short description of the error.
  2. description - {String}. A detailed description of the error.

Remarks

Supported in Android, BlackBerry and Windows Phone 7 only.