PostHog / PostHog/posthog-flutter
Surveys: Support partial response collection
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 97
- Forks
- 85
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 31
Description
🚨 IMPORTANT
This issue is likely user-facing in the main PostHog app, see surveyVersionRequirements.ts. If you delete or close this issue, be sure to update the version requirements list there.
Summary
The posthog-flutter SDK does not support partial response collection for surveys.
Current State
- Flutter wraps the native iOS and Android SDKs for surveys
- Neither native SDK currently supports partial response collection
- This issue depends on the native SDKs implementing the feature first:
Expected Behavior
When enable_partial_responses is enabled on a survey:
- The SDK should track responses incrementally as the user answers each question
- When a user dismisses or abandons a survey without completing it, the partial responses should be captured
- Events should include
$survey_partially_completed: trueproperty when responses exist but survey isn't complete - Question shuffling should be disabled when partial responses are enabled (responses are tracked by question ID)
Reference Implementation
See posthog-js browser: packages/browser/src/extensions/surveys/surveys-extension-utils.tsx
Tracking
This is tracked in the survey SDK feature parity issue: https://github.com/PostHog/posthog/issues/45658
This issue was generated by Claude during a Surveys SDK audit.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with frontend/src/scenes/surveys/surveyVersionRequirements.ts and the referenced browser implementation in packages/browser/src/extensions/surveys/surveys-extension-utils.tsx. Check the linked iOS and Android SDK issues first, since Flutter support depends on them; done means partial responses are collected and marked as specified, with question shuffling disabled when enabled.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100