Unique Identifiers
Optional
Useful when debugging or reporting issues to Oriient Support.
Overview
Oriient provides a set of unique identifiers that can help identify an installation or a particular session:
- IPS Client ID (aka Installation ID) — represents a single device installation;
- User Session ID (aka Login Session ID) — represents a single login session;
- Positioning Session ID — represents a single positioning session;
- Calibration Session ID — represents a single calibration session.
There can be multiple User Session IDs per device (one per login), and multiple Positioning/Calibration Session IDs per User Session (one per startPositioning()/startCalibration() call).
IPS Client ID
A unique identifier of the current device installation, available even before login:
val installationId = IPSCore.getIPSClientId()
User Session ID
The ID of the current active login session, available after a successful Login:
val userSessionId = IPSCore.getUserSessionId()
null if there is no active login session.
Positioning / Calibration Session ID
Positioning and calibration sessions share the same identifier — its meaning depends on which kind of session is currently active:
val sessionId = IPSPositioning.getCurrentSessionId()
null if there is no active positioning or calibration session.
Tip
The recommended place to read the current session ID is inside IPSPositioningListener.onPositioningEngineStateChanged(), right after the state changes to a positioning or calibrating state.