-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
Summary
The Android SDK does not support the schedule: 'always' survey setting, which should allow surveys to be shown every time regardless of whether they've been seen before.
Current State
The canActivateRepeatedly function in PostHogSurveysIntegration.kt only checks for event-based repeated activation:
private fun canActivateRepeatedly(survey: Survey): Boolean {
return survey.conditions?.events?.repeatedActivation == true && hasEvents(survey)
}Expected Behavior
Should also check for schedule == "always":
private fun canActivateRepeatedly(survey: Survey): Boolean {
return (survey.conditions?.events?.repeatedActivation == true && hasEvents(survey)) ||
survey.schedule == "always"
}Reference Implementation
See posthog-js browser: packages/browser/src/extensions/surveys/surveys-extension-utils.tsx lines 584-591
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