Get Session Details
Generate a link to the replay of the current session.
Create a link to either the beginning of the session replay or to a specific moment in time in the replay.
Parameters
Default value: false
If false
(or if the now
parameter is not provided), the URL returned by the method links to the beginning of the session replay. If true
, the returned URL links to the moment in the replay when the method is invoked.
Special Consideration
When the Fullstory Native Mobile instrumentation SDK starts up, it immediately fetches the latest privacy rules from the server. No information is recorded before these privacy rules have been fetched.
This method can be used once Fullstory has been fully initialized. If called before a session is initialized, we will return a null
value.
You can call the currentSessionURL
function anytime during a session to get the URL
to your replay session, or use the onFSSession
callback to receive the URL as soon as the session starts. Call the currentSession
function during a session to get an identifier for your session.
Additional Information
FS.getCurrentSession() → Future<String?>
FS.getCurrentSessionURL([bool now = false]) → Future<String?>
Example Invocation
Get a link to a session replay or a session identifier at any time during a session
var url = await FS.getCurrentSessionURL();
var id = await FS.getCurrentSession();
Get a link to a specific moment in time in the session replay
var urlNow = await FS.getCurrentSessionURL(true);