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:
let installationId = IPSCore.getIPSClientId()
User Session ID
The ID of the current active login session, available after a successful Login:
let userSessionId = IPSCore.userSessionId
nil if there is no active login session.
Positioning / Calibration Session ID
Positioning and calibration sessions share the same identifier property — its meaning depends on which kind of session is currently active:
let sessionId = IPSPositioning.currentSessionId
nil if there is no active positioning or calibration session.
Tip
The recommended place to read the current session ID is inside IPSPositioningObserver.onPositioningEngineStateChanged(), right after the state changes to positioningAndCalibrating or calibrating.