iOS session replay installation
Add PostHog to your Podfile: Or install via Swift Package Manager: Session replay requires PostHog iOS SDK version 3.6.0 or higher. We recommend always using the latest version. Go to your PostHog Project Settings and enable Record user sessions. Session recordings will not work without this setting enabled. Add For more configuration options, see the iOS session replay docs. SwiftUI is only supported if the Visit your site or app and interact with it for at least 10 seconds to generate a recording. Navigate between pages, click buttons, and fill out forms to capture meaningful interactions. Now that you're recording sessions, continue with the resources below to learn what else Session Replay enables within the PostHog platform.Install the SDK
RequiredEnable session recordings in project settings
RequiredConfigure PostHog with session replay
RequiredsessionReplay = true to your PostHog configuration. Here are all the available options:screenshotMode option is enabled. Custom views and WebViews also require screenshot mode for full support.Watch session recordings
RecommendedNext steps
RecommendedResource Description Watching recordings How to find and watch session recordings Privacy controls How to mask sensitive data in recordings Network recording How to capture network requests in recordings Console log recording How to capture console logs in recordings More tutorials Other real-world examples and use cases