PostHog / PostHog/posthog.com

Flutter session replay docs omit startSessionRecording / stopSessionRecording / isSessionReplayActive

Open Beginner friendly
#20,094 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.1k
Forks
907
Avg merge
1d 16h
Merged PRs (30d)
430

Description

Which page

https://posthog.com/docs/session-replay/installation/flutter

Problem

The Flutter session replay page documents only the config options — sessionReplay, maskAllTexts, maskAllImages, throttleDelay — and gives no indication that replay can be started or stopped at runtime. Reading it, the reasonable conclusion is that control is limited to initial configuration plus the project-level toggle.

posthog_flutter 5.39.0 in fact exposes three public methods that are not mentioned anywhere on the page:

Future<void> startSessionRecording({bool resumeCurrent = true});
Future<void> stopSessionRecording();
Future<bool> isSessionReplayActive();
Why this gap matters

The privacy docs recommend, for sensitive screens:

you can manually stop and start session recordings

So the recommended approach for the highest-risk case is undocumented on Flutter. Anyone following the Flutter installation page alone has no way to discover it.

It matters more on Flutter than elsewhere, because masking cannot cover every case. For PIN, passcode and card-number entry on a keypad, tap coordinates reconstruct the value regardless of masking (see #570), so stop/start is the only available mitigation — and it isn't in the docs. We found these methods by reading the package source after concluding, from the documentation, that no such API existed.

Suggested fix

Add a short section to the Flutter installation page covering the three methods, with a note on resumeCurrent (continue the existing session vs. start a new one), and a pointer from the privacy page's "manually stop and start session recordings" line to a concrete Flutter example — e.g. stopping capture while a PIN screen is mounted and resuming on dispose.

Environment
  • posthog_flutter 5.39.0

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the Flutter session replay installation page and compare it with the posthog_flutter 5.39.0 API described in the issue. Document startSessionRecording, stopSessionRecording, isSessionReplayActive, and resumeCurrent, then add a pointer from the privacy page with a PIN-screen example. Done means both pages explain runtime recording control for Flutter.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
documentation, mobile-dev
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.