Logging and Analytics
The Nevis Access App currently offers limited logging capabilities.
HTTP User-Agent Based Logging and Analytics
The Nevis Access app uses a custom HTTP User-Agent header to report client information to the backend. You can use this information
- to gather statistical information about app usage, and/or
- to block access for specific devices or app/SDK versions.
The header contains the following information:
- Name of the SDK (fixed to NMASDK)
- SDK version including build number
- Mobile device model
- Operating system
- OS version
- Application bundle ID
- Application version including build number
The header uses the following information order and format (the numbers in the code correspond with the numbers of the previous list):
Information Order
<1>/<2> (<3>; <4> <5>) <6>/<7>
Example User-Agent Header
NMASDK/1.6.0.5 (iPhone12,8; iPhoneOS 14.0) ch.nevis.accessapp/1.6.0.5
Parsing
You can use the following regular expression to extract individual parts from the User-Agent
header:
User-Agent Parsing RegEx
^([\w\d\s]*)\/([\d.]*)\s\((.*);\s(.*)\)\s(.*)\/(.*)