Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(surveys): mark react native as supporting the survey wait period (#122616)

Manoel Aranda Neto1199cfd5137e
diff --git a/docs/published/docs/surveys/sdk-feature-support.mdx b/docs/published/docs/surveys/sdk-feature-support.mdx
index f5af5abe0e3a..048fa3dcc2c9 100644
--- a/docs/published/docs/surveys/sdk-feature-support.mdx
+++ b/docs/published/docs/surveys/sdk-feature-support.mdx
@@ -32,6 +32,6 @@ For setup instructions, see the [installation guides](/docs/surveys/installation
| Thumbs up/down question | <IconCheck className="w-4 h-4 inline text-green" /> 1.326.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 4.19.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 3.38.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 3.49.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 5.13.0+ |
| Shuffle questions | <IconCheck className="w-4 h-4 inline text-green" /> 1.131.5+ | <a href="https://github.com/PostHog/posthog-js/issues/3162"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <a href="https://github.com/PostHog/posthog-ios/issues/492"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <a href="https://github.com/PostHog/posthog-android/issues/442"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <a href="https://github.com/PostHog/posthog-flutter/issues/310"><IconWrench className="w-4 h-4 inline text-muted" /></a> |
| Shuffle choice options | <IconCheck className="w-4 h-4 inline text-green" /> 1.131.5+ | <a href="https://github.com/PostHog/posthog-js/issues/3162"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <a href="https://github.com/PostHog/posthog-ios/issues/492"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <IconX className="w-4 h-4 inline text-red" /> | <a href="https://github.com/PostHog/posthog-flutter/issues/310"><IconWrench className="w-4 h-4 inline text-muted" /></a> |
-| Survey wait period | <IconCheck className="w-4 h-4 inline text-green" /> 1.105.7+ | <a href="https://github.com/PostHog/posthog-js/issues/3192"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <IconCheck className="w-4 h-4 inline text-green" /> 3.44.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 3.35.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 5.18.0+ |
+| Survey wait period | <IconCheck className="w-4 h-4 inline text-green" /> 1.105.7+ | <IconCheck className="w-4 h-4 inline text-green" /> 4.81.5+ | <IconCheck className="w-4 h-4 inline text-green" /> 3.44.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 3.35.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 5.18.0+ |
| Delay survey popup | <IconCheck className="w-4 h-4 inline text-green" /> 1.141.0+ | <a href="https://github.com/PostHog/posthog-js/issues/3193"><IconWrench className="w-4 h-4 inline text-muted" /></a> | <IconCheck className="w-4 h-4 inline text-green" /> 3.54.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 3.49.0+ | <a href="https://github.com/PostHog/posthog-flutter/issues/322"><IconWrench className="w-4 h-4 inline text-muted" /></a> |
| Response length validation | <IconCheck className="w-4 h-4 inline text-green" /> 1.344.0+ | <IconCheck className="w-4 h-4 inline text-green" /> 4.31.0+ | <IconX className="w-4 h-4 inline text-red" /> | <IconX className="w-4 h-4 inline text-red" /> | <IconX className="w-4 h-4 inline text-red" /> |
diff --git a/frontend/src/scenes/surveys/surveyVersionRequirements.ts b/frontend/src/scenes/surveys/surveyVersionRequirements.ts
index 8ef46059b79d..d4d26294db42 100644
--- a/frontend/src/scenes/surveys/surveyVersionRequirements.ts
+++ b/frontend/src/scenes/surveys/surveyVersionRequirements.ts
@@ -328,11 +328,12 @@ export const SURVEY_SDK_REQUIREMENTS: SurveyFeatureRequirement[] = [
feature: 'Survey wait period',
sdkVersions: {
'posthog-js': '1.105.7',
+ 'posthog-react-native': '4.81.5',
'posthog-ios': '3.44.0',
'posthog-android': '3.35.0',
posthog_flutter: '5.18.0',
},
- unsupportedSdks: [{ sdk: 'posthog-react-native', issue: 'https://github.com/PostHog/posthog-js/issues/3192' }],
+ unsupportedSdks: [],
check: (s) => (s.conditions?.seenSurveyWaitPeriodInDays ?? 0) > 0,
},
{
diff --git a/products/surveys/skills/debugging-surveys/SKILL.md b/products/surveys/skills/debugging-surveys/SKILL.md
index 1e2f8d907d49..fd3d79b1abe9 100644
--- a/products/surveys/skills/debugging-surveys/SKILL.md
+++ b/products/surveys/skills/debugging-surveys/SKILL.md
@@ -32,16 +32,16 @@ Confirm the survey's `lib` / the customer's platform before anything else, then
this table. Verified against the SDK source — re-verify if it's been months, the gaps
get filled over time.
-| Feature | Web (posthog-js) | iOS | Android | Flutter | React Native |
-| -------------------------------- | ------------------------------- | ----------------------------------------- | ---------------------------------- | ---------------------------------- | --------------------------------------- |
-| Rendering | DOM + shadow root | Native SwiftUI (`SurveysWindow`) | **No built-in UI** — delegate only | Dart widgets (`SurveyBottomSheet`) | RN components (`SurveyModal`) |
-| Event-based triggers | yes (since 1.137.0, 2024-06-05) | yes | yes | yes (native side) | yes |
-| URL / screen targeting | yes | decoded but **NOT evaluated** (`// TODO`) | decoded but **NOT evaluated** | **NOT evaluated** (native gap) | **explicitly excluded** in filter |
-| Feature-flag / cohort targeting | yes | yes | yes | yes (native side) | yes |
-| `seenSurveyWaitPeriodInDays` | yes | yes | yes | yes (native side) | stored but **comparison commented out** |
-| `surveyPopupDelaySeconds` | yes | **not implemented** | **not implemented** | **not implemented** | **not implemented** (TODO) |
-| `enable_partial_responses` | yes (≥ 1.240.0) | **no** | **no** | **no** | **no** |
-| `skipSubmitButton` (auto-submit) | yes (≥ 1.244.0) | **no** | **no** | **no** | **no** |
+| Feature | Web (posthog-js) | iOS | Android | Flutter | React Native |
+| -------------------------------- | ------------------------------- | ----------------------------------------- | ---------------------------------- | ---------------------------------- | --------------------------------- |
+| Rendering | DOM + shadow root | Native SwiftUI (`SurveysWindow`) | **No built-in UI** — delegate only | Dart widgets (`SurveyBottomSheet`) | RN components (`SurveyModal`) |
+| Event-based triggers | yes (since 1.137.0, 2024-06-05) | yes | yes | yes (native side) | yes |
+| URL / screen targeting | yes | decoded but **NOT evaluated** (`// TODO`) | decoded but **NOT evaluated** | **NOT evaluated** (native gap) | **explicitly excluded** in filter |
+| Feature-flag / cohort targeting | yes | yes | yes | yes (native side) | yes |
+| `seenSurveyWaitPeriodInDays` | yes | yes | yes | yes (native side) | yes (≥ 4.81.5) |
+| `surveyPopupDelaySeconds` | yes | **not implemented** | **not implemented** | **not implemented** | **not implemented** (TODO) |
+| `enable_partial_responses` | yes (≥ 1.240.0) | **no** | **no** | **no** | **no** |
+| `skipSubmitButton` (auto-submit) | yes (≥ 1.244.0) | **no** | **no** | **no** | **no** |
The last two rows are per the editor's own help text ("Doesn't work with the mobile SDKs for
now" / "Not available for the mobile SDKs at the moment") rather than a per-SDK source audit.
@@ -53,7 +53,7 @@ Consequences worth memorizing:
- **URL targeting is effectively web-only.** Mobile SDKs decode the field but never enforce it; React Native filters those surveys out entirely. A mobile survey with a URL condition behaves as "no URL condition" (mobile/flutter) or "never shows" (RN).
- **Android ships no survey UI.** The app (or the Flutter plugin) must provide a `PostHogSurveysDelegate`. "Survey never renders on Android" is often a missing delegate, not a PostHog bug.
- **Flutter is hybrid:** triggering/eligibility runs in the native iOS/Android layer; rendering is Dart (`SurveyService.showSurvey` → `showModalBottomSheet`). It does _not_ "just call native" for UI. So a Flutter rendering bug lives in Dart; a Flutter eligibility bug lives in native.
-- **React Native wait period is silently disabled** (the check is commented out). Don't blame the wait period on RN.
+- **React Native enforces the wait period from 4.81.5.** Older versions skip the check, so on those versions don't blame the wait period.
For a deeper version-by-version capability audit, see the `survey-sdk-audit` skill if available.