about summary refs log tree commit diff
path: root/src/App.native.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-06-17 13:21:09 -0500
committerGitHub <noreply@github.com>2024-06-17 13:21:09 -0500
commit332524b7dec18b5e19edacdb976467d6725a5df0 (patch)
tree7e3a0256ea3b8d7e2861d4a558b7f9f7f979de96 /src/App.native.tsx
parentf5f3bd8130c1ba1fee4030f758a158a983ff28c5 (diff)
downloadvoidsky-332524b7dec18b5e19edacdb976467d6725a5df0.tar.zst
Add `native_pwi_disabled` feature gate experiment (#4507)
* Add native_pwi_disabled feature gate experiment

* Use const
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r--src/App.native.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx
index 5b2071e10..322e944a4 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -14,7 +14,11 @@ import * as SplashScreen from 'expo-splash-screen'
 import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
-import {Provider as StatsigProvider} from '#/lib/statsig/statsig'
+import {
+  initialize,
+  Provider as StatsigProvider,
+  tryFetchGates,
+} from '#/lib/statsig/statsig'
 import {logger} from '#/logger'
 import {MessagesProvider} from '#/state/messages'
 import {init as initPersistedState} from '#/state/persisted'
@@ -69,6 +73,9 @@ function InnerApp() {
       try {
         if (account) {
           await resumeSession(account)
+        } else {
+          await initialize()
+          await tryFetchGates(undefined, 'prefer-fresh-gates')
         }
       } catch (e) {
         logger.error(`session: resume failed`, {message: e})