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

Store session in PlayerPrefs on Web and tvOS (close #76) #78

Closed matus-tomlein closed 1 year ago

matus-tomlein commented 1 year ago

Issue #76

Adds the ability to persist the session in PlayerPrefs instead of the file storage on tvOS and WebGL. On those platforms, access to the persistent file storage is limited so we need to make use of the PlayerPrefs storage.

I kept the file storage on other platforms for backwards compatibility. It'd be better to use PlayerPrefs everywhere, but that would mean that the session created using previous tracker versions would be reset.