From 24aa94a134eb8c882d7c7ad6334431c8829a9db6 Mon Sep 17 00:00:00 2001 From: Charles Vien Date: Wed, 25 Mar 2026 09:09:16 +0000 Subject: [PATCH] Use PlayerPrefsStorageProvider on Nintendo Switch --- com.posthog.unity/Runtime/PostHogSDK.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.posthog.unity/Runtime/PostHogSDK.cs b/com.posthog.unity/Runtime/PostHogSDK.cs index 53a8716..b55d09c 100644 --- a/com.posthog.unity/Runtime/PostHogSDK.cs +++ b/com.posthog.unity/Runtime/PostHogSDK.cs @@ -258,7 +258,7 @@ void ShutdownInternal() IStorageProvider CreateStorageProvider() { -#if UNITY_WEBGL && !UNITY_EDITOR +#if (UNITY_WEBGL || UNITY_SWITCH) && !UNITY_EDITOR return new PlayerPrefsStorageProvider(); #else return new FileStorageProvider();