Skip to content

Feature Request: improvement for local evaluation #38

@samuelcai-chancetop

Description

@samuelcai-chancetop

Can the SDK be set to not get the flag configuration from the server at start up?

We have a use case to get variant right after app startup, so we would like to use the Local Evaluation because of the speed, but it still depends on flag configurations getting from the server, more over the flag getting makes the app start up depends on Amplitude server.
So here is what I think if the SDK can do this:

  1. Similar to fetchOnStart, there is a getFlagOnStart which by default is true.
  2. If getFlagOnStart is false, user needs to getFlag after start.
  3. User can set some initialFlags for local evaluation, I see there's one pull request already: feat: bootstrap initial local evaluation flags #36

One thing I am not sure is, does this require Amplitude Experiment backend and website support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions