🚨 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 here.
Summary
The posthog-ios SDK does not support cancellation events for surveys.
Current State
The browser SDK supports cancelEvents in survey conditions, which allows surveys to be dismissed when specific events occur. This is not implemented in posthog-ios.
Expected Behavior
When a survey has conditions.cancelEvents.values configured with events, the SDK should:
- Listen for those events being captured
- Dismiss any active survey when a matching cancellation event is triggered
Reference Implementation
See posthog-js browser: packages/browser/src/extensions/surveys.ts
For mobile-specific patterns, see posthog-react-native: packages/react-native/src/surveys/getActiveMatchingSurveys.ts
Tracking
This is tracked in the survey SDK feature parity issue: PostHog/posthog#45658
This issue was generated by Claude using the /survey-sdk-audit skill.
🚨 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 here.Summary
The posthog-ios SDK does not support cancellation events for surveys.
Current State
The browser SDK supports
cancelEventsin survey conditions, which allows surveys to be dismissed when specific events occur. This is not implemented in posthog-ios.Expected Behavior
When a survey has
conditions.cancelEvents.valuesconfigured with events, the SDK should:Reference Implementation
See posthog-js browser:
packages/browser/src/extensions/surveys.tsFor mobile-specific patterns, see posthog-react-native:
packages/react-native/src/surveys/getActiveMatchingSurveys.tsTracking
This is tracked in the survey SDK feature parity issue: PostHog/posthog#45658
This issue was generated by Claude using the
/survey-sdk-auditskill.