Is mobile


Rule types – Abstract

Purpose: Is 'passed' if the current browser session was classified as accessed from a mobile device when logging in by means of the userAgent string.


images/download/attachments/201666011/image-2025-3-28_15-56-2-version-1-modificationdate-1743173762627-api-v2.png

This rule applies precisely when the session is classified as being accessed via a mobile device.

This rule may be used, e.g. in Association criteria, to assign specific forms or other adapted configurations for 'mobile sessions'.

A session is regarded as 'mobile' if the userAgent string provided by the browser application contains clues suggesting this. This information is evaluated automatically upon login to Lobster Data Platform / Orchestration.

►NOTE◄ Many browsers provide test functionality for simulating the appearance of web content on various mobile devices or for specific screen sizes, and will generate respective userAgent strings. For testing with Lobster Data Platform / Orchestration, it is important that Is mobile rules will respond correctly if the login is renewed each time simulation mode is entered, switched or terminated.

Configuration

The Is mobile rule does not use any parameters.

Example

The following screenshots show the appearance of a login dialog in a simulation mode for mobile phones, and a custom alert which is only triggered if the Is mobile rule is passed:

images/download/attachments/201666011/image-2025-3-28_16-8-50-version-1-modificationdate-1743174530702-api-v2.png

images/download/attachments/201666011/image-2025-3-28_16-13-55-version-1-modificationdate-1743174835318-api-v2.png


Configuration

An event handler is configured as shown on the right:

  • 'Client logged in' is selected as the Triggering event (see Login (Events)).

  • The Validating rule is contested here in terms of the Is mobile rule. A Static rule has been added in an OR junction. This is ineffective with the switch set to 'OFF' (see image), but can be activated to simulate the effect of the Is mobile rule when logging on in each session.
    ►NOTE◄ If a corresponding simulation is required for the entire system, the definition for the Validating rule as a whole should be transferred to an association criterion, which must then be assigned directly at all relevant points or used as a Sub criterion rule.

  • Accordingly, the Actions on passed rule are executed only if the session is classified as 'mobile' according to the browser's specifications:

    • A Show alert (Popup) event action displays the specific greeting text seen in the runtime example above.

      NOTE◄ At this point, a more comprehensive text could also be obtained from the Localization, e.g. to provide information about specific restrictions that take effect at different points in the system depending on the Is mobile rule (omission of menu items, alternative forms, etc.).

images/download/attachments/201666011/image-2025-3-28_15-55-8-version-1-modificationdate-1743173708424-api-v2.png