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
Copy file name to clipboardexpand all lines: PostHog/PostHogStorage.swift
+22-4
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,22 @@ import Foundation
10
10
/**
11
11
# Storage
12
12
13
-
posthog-ios stores data either to file or to UserDefaults in order to support tvOS. As recordings won't work on tvOS anyways and we have no tvOS users so far,
14
-
we are opting to only support iOS via File storage.
13
+
Note for tvOS:
14
+
As tvOS restricts access to persisted Application Support directory, we use Library/Caches instead for storage
15
+
16
+
If needed, we can use UserDefaults for lightweight data - according to Apple, you can use UserDefaults to persist up to 500KB of data on tvOS
0 commit comments