posthog-ios icon indicating copy to clipboard operation
posthog-ios copied to clipboard

Support Bootstrapping Flags

Open marandaneto opened this issue 1 year ago • 3 comments

Description

https://posthog.com/docs/feature-flags/bootstrapping

  • [ ] Android
  • [ ] iOS
  • [ ] Flutter
  • [x] React Native

Inspire from RN implementation https://github.com/PostHog/posthog-js-lite/blob/f00594a1e9b08c0d4785139a0df98dae31c16c34/posthog-core/src/types.ts#L22-L28

marandaneto avatar Aug 07 '24 10:08 marandaneto

+1 from this ticket, although I'm not sure bootstrapping would help in this case since his issue is mostly around making sure the properties are processed before evaluating the feature flag. Just figured I'd note it anyway.

dmarticus avatar Dec 19 '24 21:12 dmarticus

+1 from this ticket, although I'm not sure bootstrapping would help in this case since his issue is mostly around making sure the properties are processed before evaluating the feature flag. Just figured I'd note it anyway.

@dmarticus I think what you need is this https://github.com/PostHog/posthog-ios/issues/148 which is exactly for this reason when you capture events/update props but they are not ingested yet so flags can't evaluate them yet.

marandaneto avatar Dec 20 '24 09:12 marandaneto

oh that's exactly right, I didn't realize we had both!

dmarticus avatar Dec 20 '24 18:12 dmarticus