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
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.
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
Integrate Amplitude SDK and launch an app
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
The text was updated successfully, but these errors were encountered:
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.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
Environment
The text was updated successfully, but these errors were encountered: