Skip to content

Add getAllFeatureFlags method #503

@yunuslutz

Description

@yunuslutz

Problem Statement

It would be great to have a getAllFeatureFlags method available in the PostHog Android SDK, similar to some server-side SDKs like Python:
https://github.com/PostHog/posthog-python/blob/master/posthog/client.py

Without such a method, client-side discovery of feature flags is not possible, since the SDK currently requires knowing flag keys in advance (e.g., when calling isFeatureEnabled("flag_key")). This means applications must hardcode or otherwise know all possible feature flags beforehand.
Implementing it would among other things enable dynamic client-side feature configuration without hardcoding all flag keys.

Solution Brainstorm

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions