Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

PostHog iOS Image Masking: Replay Coverage Check

PostHog iOS image masking now covers highlighted and animated images and full mask rectangles. Check replay coverage and consent restarts.

· 3 min read

A mask that leaves a corner visible, or ignores an animated image, is a mask that cannot be trusted. Teams switch on maskAllImages, assume every picture is hidden and move on. Small gaps then sit in recordings for months.

Several PostHog iOS 3.92.x releases tightened this. Version 3.92.4 made UIImageView masking check highlightedImage, animationImages and highlightedAnimationImages, not only image. Version 3.92.6 made ph-no-capture masks cover the whole rectangle, including a view that fills the window, and fixed corners left visible. Version 3.92.3 kept a recording started by an event trigger when remote config updates, and made optIn() restart replay in a new session if replay was wanted when optOut() was called.

Data Points to Track

  • sdk_version: PostHog iOS version per recording
  • image_view_type: static, highlighted or animated
  • mask_rule: maskAllImages, ph-no-capture or none
  • mask_full_screen_view: true if a masked view fills the window
  • trigger_recording_kept: whether an event-triggered recording survived a config refresh
  • consent_state: opted in, opted out or restarted
  • replay_restart_count: new sessions begun after optIn()
  • review_result: clean, partial or exposed

Setup Steps

  1. Update to PostHog iOS 3.92.6 or later.
  2. Inventory screens with animated images, loading sequences, selected-state icons and profile photos.
  3. Replay a sample of recordings taken before the upgrade and look for unmasked animation frames or highlighted states.
  4. Tag recordings with the SDK version, so reviewers can filter old and new.
  5. Test full-screen masks on any screen that uses ph-no-capture on a root view, such as document previews.
  6. Walk the consent flow. Opt out, then opt in, and confirm a fresh session starts only if replay was previously enabled.
  7. Check event triggers. Launch the app, wait for the first config fetch and confirm a trigger-started recording is not cut short.
  8. Record the findings in your privacy log with dates and versions.

Actionable Insights

If pre-upgrade recordings show animated or highlighted images, decide whether they need to be deleted. Document what was visible and for how long.

If trigger-started recordings were previously cut short, expect more complete recordings after the upgrade. Annotate the date so you do not read the increase as a change in user behaviour.

A high restart count after optIn() is normal where users toggle consent. It becomes a concern if restarts occur for people who never enabled replay, because that suggests a logic error in your consent code.

Compare review results by screen. A single screen with repeated partial results usually has a custom view the masker cannot reach, and that is where to focus your testing.

Common Pitfalls

Do not rely on the changelog alone. Verify in a recording on your own build. Avoid disabling masking to debug a layout problem and then forgetting to switch it back.

Why Product Teams Should Care

Replay is valuable because it shows real behaviour, but only teams that trust their masking will use it widely. Each gap found and closed makes it easier to give designers, support staff and researchers access. Keep a short, dated log of masking fixes by SDK version. When a regulator, customer or auditor asks how you protect on-screen data, that log answers quickly and shows that you test rather than assume. Build the habit of reading release notes for masking and consent changes, not only new features.