PostHog / PostHog/posthog-android
Surveys: honor appearance.position (currently bottom-only)
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 90
- Forks
- 49
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 61
Description
Problem
posthog-react-native 4.43.13 (PostHog/posthog-js#3498) added support for honoring appearance.position on all 9 SurveyPosition values (top_left, top_center, top_right, middle_left, middle_center, middle_right, left, center, right). Survey UI on iOS still renders bottom-only regardless of the configured position.
This means surveys created in the PostHog UI with a custom position will not visually match what users see on iOS, breaking parity with the web SDK and React Native.
Expected behavior
Honor appearance.position in the iOS survey UI, matching the web SDK semantics:
top_*→ anchored to top edgemiddle_*→ vertical middleleft/center/right(no prefix) → anchored to bottom edge
Reference
- React Native implementation: https://github.com/PostHog/posthog-js/pull/3498
- Feature parity table: https://github.com/PostHog/posthog/blob/master/frontend/src/scenes/surveys/surveyVersionRequirements.ts
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
Start by locating the Android survey UI code that currently renders surveys at the bottom and trace how appearance.position is read. Compare the behavior with the referenced React Native implementation, then verify all nine SurveyPosition values use the documented top, middle, or bottom anchoring semantics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100