snowplow / snowplow-unity-tracker

Snowplow event tracker for Unity. Add analytics to your Unity games and apps
http://snowplowanalytics.com
Apache License 2.0
16 stars 11 forks source link

Add in memory event store and enable it on tvOS by default #74

Closed matus-tomlein closed 1 year ago

matus-tomlein commented 1 year ago

Currently the tracker does not work under tvOS due to using the LiteDB database for event storage – tvOS does not allow access to permanent file storage which results in UnauthorizedAccessException when the tracker tries to create or access the database.

To resolve this issue, we should implement an in-memory event storage (similar like on our iOS tracker) that will hold a queue of events to send only in memory rather than storing it in a local database. The tracker should automatically use the in-memory storage option on tvOS.