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();