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.

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