Access The Session URL

Retrieve the LogRocket session URL for use in integrations

Integration with third party services can be accomplished by retrieving the Session URL and adding it as context to the third party library. In the Android SDK, the session URL can be accessed with the SDK.getSessionURL method. Session URLs are only made available when our backend has accepted the session, which can take 1-5 seconds from when the SDK is initialized.

As of SDK version 1.32.0, once a getSessionURL receiver is registered, it will be called each time a new session is started. A hardShutdown clears all registered receivers.

SDK.getSessionURL(url -> {
  // Use the accepted Session URL.