Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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