Product Benefits Pricing Guides Docs About Contact us Try it out
Engagement

PostHog Flutter Native Screen Replay Tracking

PostHog Flutter native screen replay tracking: capture paywalls and native activities in session replay with captureNativeScreens, and measure the gaps.

· 3 min read

Your Flutter app shows a full-screen paywall built natively. In session replay, the viewer sees the Flutter screen underneath instead, so you cannot tell why users left at the most important moment of the journey.

PostHog Flutter SDK 5.32.0 adds an opt-in setting, captureNativeScreens, that lets replay record native screens covering the Flutter app. Examples include full-screen paywalls, presented view controllers and native activities. It needs posthog-ios 3.66.0 or later and posthog-android 3.55.0 or later.

Data Points to Track

  • native_screen_shown: name of the native screen presented
  • capture_native_screens: true or false in the active config
  • native_capture_result: captured, placeholder or not supported
  • screen_type: paywall, permission flow, sign-in or other
  • mask_all_texts: value of the setting at the time
  • mask_all_images: value of the setting at the time
  • replay_coverage_rate: share of native screens that appear in replay
  • exit_after_native_screen: whether the user left right after it
  • platform: iOS or Android
  • posthog_flutter_version: SDK version in use

Setup Steps

  1. Upgrade posthog_flutter to 5.32.0 or later.
  2. List your native screens, such as paywalls, checkout and sign-in.
  3. Set captureNativeScreens = true in your replay configuration.
  4. Enable it before you present a native screen. Turning it on while one is already showing may not capture it.
  5. Review masking. Native screens follow maskAllTexts and maskAllImages, so setting these to false also reveals native text, images and inputs.
  6. Send a custom event each time a native screen opens.
  7. Test each screen on both platforms and note which show a black placeholder.
  8. Compare the event count with the number of screens in replay.

Actionable Insights

A black placeholder frame means capture failed for that screen. Count them per screen type and fix the worst first.

Some content is never captured. Partial-height sheets such as share sheets, content from another process like Apple Pay, and on Android things like Custom Tabs, dialogs and permission prompts will not appear. Record these with events instead.

If drop-off after a paywall is high, watch the replays that now include it. Look for slow loading, confusing pricing and unclear close buttons.

A low coverage rate does not mean users avoid native screens. It means your picture of them is incomplete.

Choosing Which Screens to Capture

You do not have to switch capture on for the whole app. Because the flag can be toggled at runtime, you can turn it on just before a paywall or onboarding step and off again afterwards. This keeps recordings focused on the journeys you want to study and limits how much sensitive content is ever recorded.

Start with one high value screen, check the replays for placeholders and masking problems, then widen. Keep a short list of screens you have confirmed work on each platform, and recheck it after every major OS release, since native screen behaviour can change.

Common Pitfalls

Do not switch masking off just to see more. You may expose personal data.

Do not assume coverage on every device. Test real hardware.

Do not forget the Android timing fix in the same release, which aligned screenshots with touch events.

Why Product Teams Should Care

The screens that earn revenue are often the ones built natively. Seeing them in replay turns guesswork about conversion into evidence.