Autocapture of screen views doesn't handle custom container view controllers #244
Open
Description
Version
3.13.3
Steps to Reproduce
- 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. - Add PostHog with autocapture enabled
- 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
.