React Native SDK - getSessionID method
Returns the ID of the session being recorded, for example to link a replay from your support or error-reporting tools.
Signature
Section titled Signatureimport OR from '@openreplay/react-native'
// ...
const sessionID = await OR.tracker.getSessionID()
Return value
Section titled Return valuePromise<string>: resolves with the current session ID. On Android the Promise rejects with GET_SESSION_ID_ERROR if the ID can’t be read.
Have questions?
Section titled Have questions?If you have any questions about this process, feel free to reach out to us on our Slack .