Session replay: support v2 trigger groups (conditional recording)

Open
#545 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@marc-merino is already working on this.

Since Oct 7, 2026.

  • #648 by @marc-merino — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
dart, flutter
Domain
mobile-dev

Research direction

Start by reviewing the Flutter SDK's existing replay trigger configuration and the linked iOS and Android sibling issues. Done means supporting the v2 trigger shape described here, including trigger groups, group-level minimum duration, per-SDK matching, additional event and URL/screen triggers, and debug properties.

Written by the indexing model from the issue text.

Description

enhancement feature/replay
Description

Mobile tracker for PostHog/posthog#35661 (Conditional Recording 3000). The replay trigger config is getting a v2 shape, and the mobile SDKs need to support it:

  • multiple trigger groups, e.g. (20% sampling + error event) or (linked flag + url)
  • minimum duration moving inside a group
  • per-SDK matching, e.g. 40% sampling on web and 33% on mobile
  • more trigger types on non-web SDKs (event and URL/screen triggers)
  • debug properties, so conditional recording can be debugged outside web too

Sibling SDK issues:

  • iOS (PostHog/posthog-ios#775)
  • Android (PostHog/posthog-android#712)
  • Flutter (this issue)
  • RN (PostHog/posthog-js#4595)
Dominant language
Dart
Stars
99
Forks
94
Avg merge
2d 4h
Merged PRs (30d)
65

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PostHog/posthog-flutter

All issues in PostHog/posthog-flutter

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.