Skip to content

Change internal files storage location #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fvolchyok opened this issue Mar 25, 2025 · 0 comments
Open

Change internal files storage location #265

fvolchyok opened this issue Mar 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@fvolchyok
Copy link

Expected Behavior

Amplitude internal files are stored in specific, system-defined folder and don't pollute /Documents directory reserved for user-generated data.

Current Behavior

Current implementation stores internal Amplitude files in Documents/ directory, which is reserved for user-generated data, as per Apple's File System Programming Guide Table 1-1 and Where You Should Put Your App’s Files section. This approach goes against Apple guidelines and common sense since it causes unnecessary pollution of /Documents directory, forces developers to handle unexpected content there with unnecessary workarounds and in general may even break some apps.

Image

Possible Solution

Change location of internal files from /Documents to /Library/Application Support/ as prescribed by Apple and a common practise among major iOS SDKs.

Steps to Reproduce

  1. Integrate Amplitude SDK and launch an app
  2. Inspect app directory content via either FileManager (programmatically) or via exporting app data with "Devices and Simulators" -> "Download container..."

Environment

  • SDK Version: 1.9.4
  • OS Info: iOS 17.6.1
@fvolchyok fvolchyok added the bug Something isn't working label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant