Skip to main content

mobage.shellapp.Device


Methods​

mobage.shellapp.Device.getUniqueId​

String getUniqueId()

This function gets the unique ID of the mobile device.

  • Behavior on Android
    • If the device supports telephone functions, the function returns its identification number.
    • If the device does not support telephone functions, the function returns its MAC address.
  • Behavior on iOS
    • The function returns the device's UDID.

Parameters
None

Return value

TypeDescription
StringString representation of device ID

Sample

var deviceID = mobage.shellapp.Device.getUniqueId();

mobage.shellapp.Device.openURLWithBrowser​

void openURLWithBrowser(String url)

This function launches an external browser.

Parameters

StringDescription
StringString representation of URL to be opened in an external browser

Return value
None

Sample

mobage.shellapp.Device.openURLWithBrowser("http://www.example.com/");

Revision History​

  • 03/01/2013
    • Added iOS descriptions.
  • 12/11/2012
    • Initial release.