Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: posthog feature flags #380

Open
2 of 26 tasks
pondorasti opened this issue Jan 11, 2025 · 3 comments
Open
2 of 26 tasks

feat: posthog feature flags #380

pondorasti opened this issue Jan 11, 2025 · 3 comments
Assignees

Comments

@pondorasti
Copy link

pondorasti commented Jan 11, 2025

Plugin(s)

  • Android Foreground Service
  • Android Battery Optimization
  • App Review
  • App Shortcuts
  • App Update
  • Background Task
  • Badge
  • Bluetooth Low Energy
  • Cloudinary
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Live Update
  • Managed Configurations
  • NFC
  • Photo Editor
  • Printer
  • Screen Orientation
  • Screenshot
  • Speech Recognition
  • Speech Synthesis
  • Torch
  • Zip

Current problem

Support PostHog's official implementation for feature flags.

https://posthog.com/docs/libraries/android#feature-flags

Preferred solution

For the MVP it could get as simple as just adding a isFeatureEnabled and follow up for multi variants and payloads .

Alternative options

No response

Additional context

No response

Before submitting

@robingenz
Copy link
Member

Yes, this is currently missing. Feel free to create a PR.

@pondorasti
Copy link
Author

Yes, this is currently missing. Feel free to create a PR.

@robingenz I'm opening a bounty for the requested feature request. I've made a $200 contribution on Open Collective. I'm also happy to contribute more if it's going to take more than two hours to implement full support for feature flags and experiments, but I think this is a good start.

I'm specifically looking at adding support for the following features:

  • boolean feature flags
  • reloading feature flags
  • experiments (a/b tests)

There's also multi variate feature flags and the onFeatureFlags init callback which I'm less interested in, and are more of a nice to have.

https://posthog.com/docs/libraries/android#feature-flags
CleanShot 2025-01-11 at 16 04 13@2x

@robingenz
Copy link
Member

@pondorasti Thank you for your contribution. I have attached the corresponding labels to the issue. I will take a look at this myself this week.

@robingenz robingenz self-assigned this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants