Device Information in Mobile

Hi,

Can I somehow grab the these fields in a mobile app and display them on a screen? 


Hi,

You can use below JS snippet API:

// get device information
if (cordova) {
  $public.Device.whenReady().then(function() {
    $parameters.DeviceModel = device.model;
    $parameters.CordovaVersion = device.cordova;
    $parameters.Platform = device.platform;
    $parameters.UUID = device.uuid;
    $parameters.Version = device.version;
    $parameters.Manufacturer = device.manufacturer;
    $parameters.IsSimulator = device.isVirtual;
    $parameters.SerialNumber = device.serial;
    $resolve();
  });
} else {
  // fallback when testing on desktop browser
  $resolve();
}


https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/JavaScript_API/Device



assif_tiger wrote:

Hi,

You can use below JS snippet API:

// get device information
if (cordova) {
  $public.Device.whenReady().then(function() {
    $parameters.DeviceModel = device.model;
    $parameters.CordovaVersion = device.cordova;
    $parameters.Platform = device.platform;
    $parameters.UUID = device.uuid;
    $parameters.Version = device.version;
    $parameters.Manufacturer = device.manufacturer;
    $parameters.IsSimulator = device.isVirtual;
    $parameters.SerialNumber = device.serial;
    $resolve();
  });
} else {
  // fallback when testing on desktop browser
  $resolve();
}


https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/JavaScript_API/Device

I don't think it cover the Device IP and Network Type..