Skip to content

Commit 3360b46

Browse files
authored
Merge pull request #626 from Iterable/MOB-6106-Application-Directory-for-json-file-storage
[MOB - 6106] - Use Application Directory
2 parents 33d88c9 + a871948 commit 3360b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/InAppPersistence.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class InAppFilePersister: InAppPersistenceProtocol {
411411

412412
struct FileHelper {
413413
static func getUrl(filename: String, ext: String) -> URL? {
414-
guard let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else {
414+
guard let dir = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first else {
415415
return nil
416416
}
417417

0 commit comments

Comments
 (0)