React Native SDK - getSessionID method

Details about the getSessionID method from OpenReplay's React Native SDK

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.

import OR from '@openreplay/react-native'

// ...
const sessionID = await OR.tracker.getSessionID()

Promise<string>: resolves with the current session ID. On Android the Promise rejects with GET_SESSION_ID_ERROR if the ID can’t be read.

If you have any questions about this process, feel free to reach out to us on our Slack .