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
Is your feature request related to a problem? Please describe.
Yes. UserDefaults.standard is used in this library to persist data pertaining to the Snoplow tracking. However, it is likely the app that links against the Snowplow tracking library also stores data in the same UserDefaults suite. On tvOS this can lead to crashes since the available size is quite limited. Attempting to write more than is available will lead to a crash. See e.g.: microsoft/appcenter-sdk-apple#2483 for a detailed explanation.
Describe the solution you'd like
The Snowplow library should scope persistence in UserDefaults to its own suite. With this approach one has more control of mechanism needed to for instance purging stale data to preserve space. One is also not dependent of how much data the app has written to the .standard instance.
Describe alternatives you've considered
N/A
The text was updated successfully, but these errors were encountered:
Hi, unfortunately we have no plans to address this at the moment. If you're a Snowplow customer then please submit a Support request. Otherwise, PRs are always welcome!
Is your feature request related to a problem? Please describe.
Yes.
UserDefaults.standard
is used in this library to persist data pertaining to the Snoplow tracking. However, it is likely the app that links against the Snowplow tracking library also stores data in the same UserDefaults suite. On tvOS this can lead to crashes since the available size is quite limited. Attempting to write more than is available will lead to a crash. See e.g.: microsoft/appcenter-sdk-apple#2483 for a detailed explanation.Describe the solution you'd like
The Snowplow library should scope persistence in UserDefaults to its own suite. With this approach one has more control of mechanism needed to for instance purging stale data to preserve space. One is also not dependent of how much data the app has written to the
.standard
instance.Describe alternatives you've considered
N/A
The text was updated successfully, but these errors were encountered: