Offline Logging and Sync in FullStory
Answered
I would like to enquire whether FullStory supports saving logs in offline mode when the application does not have internet connectivity. Additionally, does the SDK automatically upload the stored logs to the portal once the application regains connectivity?
If offline logging is not currently supported, please suggest the best recommended approach to handle such a scenario within a mobile application? We're particularly interested in ensuring session data is not lost during periods of no connectivity.
0
Comments
5 comments
Hi Hima Bindu Thumuluru
Thanks for reaching out!
Currently, for both platforms, the device needs to be online to create a session.
In terms of losing connectivity during a session, on Android we cache the session data and attempt to re-upload it for up to 7 days when the app is running and connectivity is restored. On iOS, however, the session data is not currently stored or retried, but this improvement is on our product team's radar.
Hi Allegra Anka
Thank you for response.
can you please suggest some recommended approach to capture offline events in iOS devices.
Hi Hima Bindu Thumuluru
On iOS, we'll make one final attempt (a swan song) to send the final bundle to our servers specifically in the event of a crash, more on that here: Native Mobile Crash & Error Reporting
Otherwise, with respect to losing connectivity on iOS after a session has already been established, Fullstory does not support any specific retry logic at this time. Events cannot be captured offline because a session needs to be established online in order to check for settings, privacy rules, etc., on our servers initially, and then subsequently in order to continue to send bundles back to the server.
That said, on iOS session data may still be stored in a temporary file and uploaded using a background NSURLSessionUploadTask, using whatever retry logic the operating system provides for these type of tasks.
We've added your feedback here to this internal feature request on your behalf, so that our teams can bring this into consideration as we plan developments.
I hope this helps! Please let us know if you have any additional questions.
Hi Allegra Anka,
Thank you for response.
can you please suggest some recommended approach to capture session replay metrics when device runs in offline mode ?
Detail → As confirmed by you, we should be able to log the events in offline mode with the help of 7 days caching supported by Fullstory only for Android Devices but the issue is that once the session is lost due to internet disconnect then we can’t capture “Sessions Replay Metric” so can you please help us with this ?
Hi Hima Bindu Thumuluru ,
Hania here, just tagging in from the Support team.
I'm afraid the information we shared previously does still stand - a device does need to be online for a session to be created. If connectivity is lost during a session, there is not any specific retry logic supported for iOS at this time.
There isn't a further workaround or approach we could advise for this particular scenario unfortunately. I'm sorry we don't better have news on that for you, but we have formally logged this feedback with our product teams on your behalf, so that they can explore this further as we plan developments.
If you have any further queries, please do let us know.
Please sign in to leave a comment.