-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
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-ios SDK does not support partial response collection for surveys.
Current State
- The
enable_partial_responsesfield is not present in the Survey model - There is a
// TODO: Partial responsescomment inPostHogSurveyIntegration.swift:437but no implementation - Currently, responses are only sent when the survey is fully completed
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
_surveyHasResponses()function checks if any responses exist_buildSurveyEventProperties()includes$survey_partially_completedpropertygetDisplayOrderQuestions()disables shuffling whenenable_partial_responsesis true
Tracking
This is tracked in the survey SDK feature parity issue: PostHog/posthog#45658
This issue was generated by Claude during a Surveys SDK audit.
Reactions are currently unavailable