Skip to content

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

Draft
marc-merino wants to merge 3 commits into
PostHog:mainfrom
marc-merino:knit/session-replay-v2-trigger-groups-on-mobile
Draft

marc-merino wants to merge 3 commits 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)

@github-actions

Copy link
Copy Markdown
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@github-actions github-actions Bot added the stale label Oct 15, 2026
@marandaneto
marandaneto marked this pull request as draft October 21, 2026 08:42
@marandaneto

Copy link
Copy Markdown
Member

draft until native versions are released

@github-actions github-actions Bot removed the stale label Oct 21, 2026
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
@marc-merino
marc-merino force-pushed the knit/session-replay-v2-trigger-groups-on-mobile branch from 8b50a5c to 3379ebb Compare October 25, 2026 20:29
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@github-actions github-actions Bot added the stale label Nov 2, 2026
@ioannisj ioannisj removed the stale label Nov 6, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@github-actions github-actions Bot added the stale label Nov 16, 2026
marc-merino and others added 2 commits November 16, 2026 11:25
…sion-replay-v2-trigger-groups-on-mobile

Conflicts in the three native floor declarations resolved to main's
floors (posthog-android 3.77.0, posthog-ios 3.92.3). The next commit
raises them again to the releases that will carry v2 trigger groups.

Co-Authored-By: Ivaldi <ivaldi@users.noreply.github.com>
…y v2 trigger groups

main moved the floors past the ones this branch had picked, to releases
that still lack v2 trigger groups. The support ships in the next minor
of each native SDK, so the floors are now posthog-android 3.78.0 (main
is at 3.77.1) and posthog-ios 3.98.0 (main is at 3.97.2), and the
changeset names the same versions.

These releases do not exist yet: the Android and iOS builds cannot
resolve them until the native PRs are merged and released.

Co-Authored-By: Ivaldi <ivaldi@users.noreply.github.com>

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session replay: support v2 trigger groups (conditional recording)

3 participants