Skip to content

Autocapture of screen views doesn't handle custom container view controllers #244

Open
@jadar

Description

Version

3.13.3

Steps to Reproduce

  1. Add a custom container view controller that will swap views based on some state. For example, we have an InitialViewController that either shows the login screen or our app depending on the login state.
  2. Add PostHog with autocapture enabled
  3. Observe events coming in as screen view for the Initial screen, even when the other screens are being visited.

Expected Result

Each screen even has the unique name of the View controller being visited.

Actual Result

Each event has the same view controller at the base of our hierarchy. Ours is called InitialViewController.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions