PostHog / PostHog/posthog-flutter
Add action-based survey targeting
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 here.
Summary
The posthog-flutter SDK does not support action-based survey targeting.
Current State
- Flutter delegates survey handling to the native iOS and Android SDKs
- Neither posthog-ios nor posthog-android currently support action-based survey targeting
Expected Behavior
When a survey is configured with action-based targeting (survey.conditions.actions.values), the Flutter SDK should:
- Match captured events against the configured actions
- Only show the survey when a matching action is triggered
This requires the underlying native SDKs (posthog-ios and posthog-android) to implement action-based targeting first.
Dependencies
- https://github.com/PostHog/posthog-ios/issues/451
- https://github.com/PostHog/posthog-android/issues/394
Reference Implementation
See posthog-js browser: packages/browser/src/extensions/surveys/ActionMatcher.ts
Tracking
This is tracked in the survey SDK feature parity issue: https://github.com/PostHog/posthog/issues/45658
This issue was generated by Claude using the /survey-sdk-audit skill.
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
First check the linked posthog-ios and posthog-android issues, since Flutter delegates survey handling to those SDKs. Compare the required behavior with packages/browser/src/extensions/surveys/ActionMatcher.ts and review frontend/src/scenes/surveys/surveyVersionRequirements.ts. Done means matching configured actions causes the survey to appear only after a matching event, once native support exists.
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
- 25/100