Skip to main content
Version: 3.7.x.x RR

Analytics

Overview

The Nevis Mobile Authentication SDK uses a custom HTTP User-Agent to report client information to the backend. The information can be used to gather statistical data about app and SDK usage and additionally to block access for specific devices or app and SDK versions if desired.

Information in header

The following information is contained in the header:

  1. Name of the SDK (fixed to NMASDK)
  2. SDK version including build number
  3. Mobile device model
  4. Operating system
  5. OS Version
  6. The Bundle ID of the application
  7. Application version including build number

The header is using the following format:

[1]/[2] ([3]; [4] [5]) [6]/[7]

Example User-Agent header

MASDK/3.1.0.123 (Xiaomi Redmi Note 8 Pro; Android 10) ch.nevis.accessapp/3.1.0.899
NMASDK/3.1.0.123 (iPhone12,8; iPhoneOS 14.0) ch.nevis.accessapp/3.1.0.899

Parsing

You can use t following regular expression to extract individual parts of the User-Agent header:

^([\w\d\s]*)\/([\d.]*)\s\((.*);\s(.*)\)\s(.*)\/(.*)