Skip to content

feat(replay): raise native floors for session replay v2 trigger groups - #648

Open
marc-merino wants to merge 1 commit into
PostHog:mainfrom
marc-merino:knit/session-replay-v2-trigger-groups-on-mobile
Open

marc-merino wants to merge 1 commit into
PostHog:mainfrom
marc-merino:knit/session-replay-v2-trigger-groups-on-mobile

Conversation

@marc-merino

@marc-merino marc-merino commented Oct 7, 2026 •

Copy link
Copy Markdown

Knit Bundle

View bundle

This PR is part of Knit bundle session-replay-v2-trigger-groups-on-mobile.

See the other review objects in this bundle:

Bundle id: session-replay-v2-trigger-groups-on-mobile
Bundle title: Session replay v2 trigger groups on mobile

One of four PRs adding session replay v2 trigger groups to the mobile SDKs (Android, iOS, React Native, Flutter). You can see the unified description of the whole change here: Svartal bundle. The four PRs are linked above.

💡 Motivation and Context

Closes #545.

Flutter session replay runs on the native SDKs: Dart captures go through the native capture pipeline, and posthog-android / posthog-ios fetch the remote config and decide whether to record. So once the native SDKs evaluate v2 trigger groups, Flutter apps get them without Dart changes. This PR only raises the native floors to the releases that will contain that support:

  • posthog-android [3.73.0,4.0.0)
  • posthog-ios >= 3.91.0 (podspec and Package.swift)

Merge order: this can only merge after the Android and iOS PRs (linked in the Knit block above) are released. Until then the Android and iOS builds here can't resolve those versions, so CI is expected to fail. If the native releases ship under different version numbers, I'll update the floors. The example apps' Package.resolved files are left as they are until the iOS release exists.

💚 How did you test it?

There is no Dart or plugin code change. The trigger-group behaviour itself is tested in the native PRs: unit tests, plus end-to-end runs of the Android sample and the iOS example app against a mock server. Once the native releases exist I'll run the Flutter example on Android and iOS against the same mock and post the results here.

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran pnpm changeset to generate a changeset file

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

The native SDKs evaluate the v2 trigger groups, so raise the floors to
posthog-android 3.73.0 and posthog-ios 3.91.0, the first releases that
support them.

Assisted-by: Claude Code/claude-opus-5-5

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session replay: support v2 trigger groups (conditional recording)

1 participant