Skip to content

LocalStorage access throws on mobile webview and ios safari private browsing #524

@jamesscoville

Description

@jamesscoville

Both setUserId and setEmail throw when they call localStorage properties in browsers without localStorage access. This includes mobile webview browsers inside of mobile applications and private browsing sessions.

Would it be possible to add some lightweight feature detection that localStorage is accessible before making these calls?

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