You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Json file is saved in public documents folder even when setting storageJson flag is false #171
Using the latest Segment Flutter package 1.1.7, the file analytics-flutter-queue-flushing-plugin.json is saved in the user's files directory even after setting the flag storageJson to false. The file which is easily accessible by the user includes some info like userId and the client's Segment apiKey. This is a follow up to an issue reported back in 2024:
changed the title [-]Json file is saved in public documents folder even when setting storageJson flag to false[/-][+]Json file is saved in public documents folder even when setting storageJson flag is false[/+]on Jul 14, 2025
Hi team, just following up to see if anyone on Segment's side has had a chance to look into this? It's likely safe to say this is impacting more users than just us. Please let me know if you need any more information from me. thanks
We have fixed the issue with storageJson option in latest release version 1.1.9. Now the JSON file is created only when the storageJson is set to true.
However, regarding the location of the JSON file, we’ve verified that on the iOS, JSON files are indeed stored in the App's sandboxed container, preventing access from outside the app.
For instance, the analytics-flutter-queue_flushing_plugin.json is created on the following path which is App's sandbox directory:
During installation of a new app, the installer creates a number of container directories for the app inside the sandbox directory. Each container directory has a specific role. The bundle container directory holds the app’s bundle, whereas the data container directory holds data for both the app and the user. The data container directory is further divided into a number of subdirectories that the app can use to sort and organize its data.
More importantly, this directory is only accessible when running in the Simulator (or if the device is jailbroken) - on a standard physical device, this path cannot be accessed due to Sandbox protections.
Could you please share the full path shown in your screenshot and any other details so we can better understand your setup?
Also are you able to clarify what information is contained in the info logs generated by setting debug: true? The Docs are lacking much detail as to what this setting does. Will it have any impact on viewing the events flowing through Segment's debugger?
No, logging is on device and has no impact on the Segment Debugger
Setting debug to true enables debug level log statements in the library to be sent to the default logger or a callback if provided on initialization. It also adds a plugin that prints out detailed event information for all events that are processed to the logger.
Hey all, we updated to v1.1.9 of the flutter SDK and verified that Json files are no longer generated in the Files app when setting the storageJson flag to false. Thanks again for the fix, much appreciated. This issue can be closed as resolved.
Activity
[-]Json file is saved in public documents folder even when setting storageJson flag to false[/-][+]Json file is saved in public documents folder even when setting storageJson flag is false[/+]vangelis-vargas commentedon Aug 27, 2025
Hi team, just following up to see if anyone on Segment's side has had a chance to look into this? It's likely safe to say this is impacting more users than just us. Please let me know if you need any more information from me. thanks
Patching Github Issue #171
neelkanth-kaushik commentedon Sep 2, 2025
@vangelis-vargas Yes, we are looking into this.
vangelis-vargas commentedon Sep 2, 2025
Thanks for the reply!
Patching Github Issue #171 (#176)
neelkanth-kaushik commentedon Sep 10, 2025
Hello @vangelis-vargas ,
We have fixed the issue with
storageJsonoption in latest release version 1.1.9. Now the JSON file is created only when the storageJson is set to true.However, regarding the location of the JSON file, we’ve verified that on the iOS, JSON files are indeed stored in the App's sandboxed container, preventing access from outside the app.
For instance, the
analytics-flutter-queue_flushing_plugin.jsonis created on the following path which is App's sandbox directory:/Users/nk/Library/Developer/CoreSimulator/Devices/CA8FEF53-C4FD-4074-9918-BFD97E415297/data/Containers/Data/Application/C0304C4E-3EB4-4512-B4D4-C08422C0F1F7/DocumentsApple describes this isolation clearly:
References: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/Fi[…]stemOverview/FileSystemOverview.html?utm_source=chatgpt.com
More importantly, this directory is only accessible when running in the Simulator (or if the device is jailbroken) - on a standard physical device, this path cannot be accessed due to Sandbox protections.
Could you please share the full path shown in your screenshot and any other details so we can better understand your setup?
Thanks.
vangelis-vargas commentedon Sep 11, 2025
Thanks for getting back to me. Please try these repro steps on a physical iOS device:
On My iPhoneSpliceand you should find the fileanalytics-flutter-queue_flushing.jsonWe have our client config set like this:
vangelis-vargas commentedon Sep 11, 2025
Also are you able to clarify what information is contained in the
info logsgenerated by settingdebug: true? The Docs are lacking much detail as to what this setting does. Will it have any impact on viewing the events flowing through Segment's debugger?MichaelGHSeg commentedon Sep 11, 2025
No, logging is on device and has no impact on the Segment Debugger
Setting debug to true enables debug level log statements in the library to be sent to the default logger or a callback if provided on initialization. It also adds a plugin that prints out detailed event information for all events that are processed to the logger.
vangelis-vargas commentedon Sep 15, 2025
Hey all, we updated to v
1.1.9of the flutter SDK and verified that Json files are no longer generated in the Files app when setting thestorageJsonflag to false. Thanks again for the fix, much appreciated. This issue can be closed as resolved.