PostHog / PostHog/posthog-android

Surveys: honor appearance.position (currently bottom-only)

Open
#502 0 comments 0 reactions 0 assignees View on GitHub

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 edge
  • middle_* → vertical middle
  • left / center / right (no prefix) → anchored to bottom edge

Reference

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.