Skip to content

Calling LDClient.start() without a context creates an anonymous context that is not marked as anonymous #452

@Gleeble

Description

@Gleeble

Describe the bug
We recently encountered a problem where we had an influx of new MAU usage but there were no anonymous contexts, just a bunch of contexts that just had a UUID key. After investigation we found an application that was calling start() on the LDClient without providing a context, leading to a great deal of non-anonymous anonymous contexts.

To reproduce
Calling LDClient.start(config: config, startWaitSeconds: 0) in the code to start the LaunchDarkly connection

Expected behavior
We would expect that this would lead to a context with no information and a random key being generated that is marked as anonymous.

Logs
If applicable, add any log output related to your problem.

Library version
9.12.3 (I think)

XCode and Swift version
Unknown

Platform the issue occurs on
iPhone (I assume)

Additional context
I'm just a middle man for this error coming up, consulted and helped investigate but I have not worked with this application directly, but I can consult the team as necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions