PostHog / PostHog/posthog-android
Add full onFeatureFlags callback with flags, variants, and error state
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 90
- Forks
- 49
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 61
Description
Description
Mobile currently lacks parameters in the onFeatureFlags callback, causing inconsistency with Web. We use a void callback that only notifies when flags are loaded, but the intention is to pass evaluated flags, variants, and any error state.
Context: https://github.com/PostHog/posthog-flutter/pull/224#discussion_r2601793593
- iOS (https://github.com/PostHog/posthog-ios/issues/647)
- Android (this issue)
- Flutter (https://github.com/PostHog/posthog-flutter/issues/231)
- RN
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android SDK's onFeatureFlags callback and compare its current void signature with the Web behavior described in the issue. Review the linked Flutter discussion and platform issues for the expected flags, variants, and error state; done means the Android callback exposes those values consistently and its existing callers or tests are updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- api, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100