Skip to content

The 'enabled' property is not persisting across app launches #412

@galijot

Description

@galijot

Segment.Analytics has a property called enabled which is used to enable/disable analytics.

This property is not persisting across app launches, so after each app launch and after analytics has been configured, its enabled property should be updated to reflect the setting a user has selected.

Is this expected? I went through the documentation but couldn't find anything related to this (analytics enabling/disabling and about this property), so I can't figure if this is intentional and library users should re-apply this property manually, or if this is a bug.

By looking at the code, it seems to me that this property is intentionally not persisted, but the implementation could be a bug, and I'd rather have a confirmation of how is this supposed to work.

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