Official Content

The ClientInformation external object is a set of functions intended to provide access to the client machine information (browser or smart device), where the application is running.

ClientInformationexternalobject-Location_png ClientInformationStructure_png

Properties

Id property

This property returns an acceptable device identifier in most implementations. Please read ClientInformation.Id Property for detailed behavior description.

OSName property

Returns the operating system name running on the SD as a string (as a VarChar(40)).
Returned values are: "iPad", "iPhone", "iPod" and "Android".

OSVersion property

Returns the version of the operating system running on the Smart Devices as a string (as a VarChar(40)).
The returned value format depends on the operating system.

Language property

A character string is returned with the device language (as a VarChar(20), e.g. 'en-US,en' with '<locale>,<language>' format.
A possible use-case, for example, is to measure the number of devices accessing the application that lacks the language configuration not provided by the application. In this way, priorities can be established to make the application international.

Note that the application will be automatically displayed in the language more appropriate for the user, depending on the device language and the languages available on the Knowledge Base. The GetLanguage function must be used to programmatically determine the language being used to display the application.

DeviceType property

Returns one of the following enumerated values from SmartDeviceType domain: Android, Apple, Web.

PlatformName property

Returns the platform name of the device as much specific as possible.  Its value consists of three device features described in the following table (e.g. Android Tablet 10").

O.S. Type Size
Android Phone  
Tablet 7''
10''
Apple iPad  
iPhone  

AppVersionCode property

Returns the version number of the application which it was set by the developer in VersionCode property.

AppVersionName property

Returns the version name of the application which it was set by the developer in VersionName property.

ApplicationId property

Returns the application identifier. This is the package name in case of Android applications and the bundle identifier in case of Apple applications.

Methods

It does not have any.

Events

It does not have any.

Domains

SmartDeviceType domain

Indicates Smart Devices platforms.

Android Android device
Apple Apple device
Windows Windows Phone device (no longer supported in GeneXus 15)
 

Notes

Platforms  Smart Devices (Android, Apple), Angular

Availability

As of GeneXus X Evolution 3.


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant