diff options
author | Hailey <me@haileyok.com> | 2024-05-13 09:19:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 09:19:35 -0700 |
commit | d3406c89cf0c5b46197a87298dcd4e1326fef643 (patch) | |
tree | 6495ae6ca57f07077500a2e69f6cdc1c334be33e /src/lib/statsig/gates.ts | |
parent | 63b38b413d7a9e243646d11219b0959b3e59cc79 (diff) | |
download | voidsky-d3406c89cf0c5b46197a87298dcd4e1326fef643.tar.zst |
Move request for notifications permissions to `HomeReadyScreen` (#3977)
* cleanup the current logic * add statsig logs * implement requests for permissions where needed * oops * let `addPushTokenListener` handle the token registration * place new log event type with the other `notifications` type * place registration next to handler * more organization * only call `gate()` if permission is not yet granted * be more specific to prevent gate pollution * nit * make `token` non-optional in `registerToken` * remove `prevDid`, move `registerPushToken` into `useEffect` * keep it outside actually * nit
Diffstat (limited to 'src/lib/statsig/gates.ts')
-rw-r--r-- | src/lib/statsig/gates.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index a2dbb4950..315706ad0 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -5,6 +5,7 @@ export type Gate = | 'disable_poll_on_discover_v2' | 'dms' | 'reduced_onboarding_and_home_algo' + | 'request_notifications_permission_after_onboarding' | 'show_follow_back_label_v2' | 'start_session_with_following_v2' | 'test_gate_1' |