Skip to content

wrong instance is being used sometimes-- seems to be related to react-native/storage #203

@uooq

Description

@uooq

Using version 5.5.0 of this SDK

We've set up two amplitude instances in our react-native app. They log wholly different types of events, use different user IDs, custom device IDs, etc.

We're seeing occasional cases where the events logged to one of the instances are going to the wrong project. Based on when these mistakes happen and looking at the app state surrounding these mistakes, it seems to have something to do with the app suspending and resuming.

Total stab in the dark, but is it possible that pending events that can't be tracked are getting persisted (e.g. saved to AsyncStorage) and that when the sdk retrieves them, they're getting assigned to an incorrect instance?

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