PostHog / PostHog/posthog-flutter

Stop all integrations like session replay and autocapture on opt-out

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

Nobody has claimed this yet.

bug
Dominant language
Dart
Stars
97
Forks
85
Avg merge
1d 8h
Merged PRs (30d)
31

Description

Description

Original discussion: https://github.com/PostHog/posthog-ios/pull/276#discussion_r1905431037

When opting-out, we should stop() all integrations since they won't be processed by the SDK, and then start() again on next opt-in.

For session replay, when opting-in a new session should be created.

Contributor guide

Open the contributing guide

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 by tracing the Flutter SDK's opt-out handling and how integrations such as session replay and autocapture are started and stopped. Done means every integration stops on opt-out, starts again on the next opt-in, and session replay creates a new session after opting back in.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.