Get Session Details
Generate a link to the replay of the current session
moment in time API with now parameter available post v1.3
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
computed property anytime during a session to get the URL
to your replay session, call the currentSession
computed property during a session to get an identifier for your session, or use the fullstoryDidStartSession
delegate to retrieve sessionUrl
parameter after the recording has started.
- Objective-C
- Swift
[FS currentSessionURL]
[FS currentSession]
[FS currentSessionURL:(BOOL)now]
Example Invocation
Get a link to a session replay after a session begins
You can use the fullstoryDidStartSession
delegate to retrieve the sessionUrl in your app delegate:
- (void)fullstoryDidStartSession:(NSString *)sessionUrl {
// This will give you the sessionURL when the recording begins.
NSLog(@"Fullstory did start session with URL %@", sessionUrl);
}
Get a link to a session replay or a session identifier at any time during a session
NSLog(@"Fullstory session URL: %@", [FS currentSessionURL]);
NSLog(@"Fullstory session identifier: %@", [FS currentSession]);
Get a link to a specific moment in time in the session replay
NSLog(@"Fullstory session URL: %@", [FS currentSessionURL:true]);
FS.currentSessionURL
FS.currentSession
FS.currentSessionURL(now: Bool)
Example Invocation
Get a link to a session replay after a session begins
You can use the fullstoryDidStartSession
delegate to retrieve the sessionUrl in your app delegate:
func fullstoryDidStartSession(_ sessionUrl: String) {
// This will give you the sessionURL when the recording begins.
print("Fullstory did start session with URL \(sessionUrl)")
}
Get a link to a session replay or a session identifier at any time during a session
print("Fullstory session URL: \(FS.currentSessionURL)")
print("Fullstory session identifier: \(FS.currentSession)")
Get a link to a specific moment in time in the session replay
print("Fullstory session URL: \(FS.currentSessionURL(true))")