Skip to content

Releases: PostHog/posthog-android

android-v3.47.0

26 May 20:36
Immutable release. Only release title and notes can be modified.
6978d04

Choose a tag to compare

Minor Changes

  • 8d11398: Add public Logs API: PostHog.logger.trace/debug/info/warn/error/fatal(message, attrs?) plus a PostHogLogsConfig for serviceName, environment, resourceAttributes, rate cap, and addBeforeSend redaction hooks. Logs ship via OTLP/JSON to /i/v1/logs and pick up auto-attached attributes (app.state, distinctId, sessionId, screen name, feature flags). Matches the equivalent surfaces on posthog-ios and posthog-react-native.

  • 8d11398: Auto-attach $screen_name to every captured event after PostHog.screen() has been called (manually or via Activity-lifecycle auto-capture). Cached value is cleared by reset() and close().

    To opt out of $screen_name stamping entirely, set PostHogAndroidConfig.captureScreenViews = false and stop calling PostHog.screen() manually. Disabling captureScreenViews alone is not sufficient — a single manual PostHog.screen("Home") call will re-enable stamping.

android-v3.46.0

26 May 19:22
Immutable release. Only release title and notes can be modified.
baea369

Choose a tag to compare

Minor Changes

  • 09f86a6: Add public Logs API: PostHog.logger.trace/debug/info/warn/error/fatal(message, attrs?) plus a PostHogLogsConfig for serviceName, environment, resourceAttributes, rate cap, and addBeforeSend redaction hooks. Logs ship via OTLP/JSON to /i/v1/logs and pick up auto-attached attributes (app.state, distinctId, sessionId, screen name, feature flags). Matches the equivalent surfaces on posthog-ios and posthog-react-native.

android-v3.45.1

23 May 20:03
Immutable release. Only release title and notes can be modified.
24e7eb9

Choose a tag to compare

Patch Changes

  • 3cd4742: Fix session replay screenshots being dropped on screens with continuous animations (e.g. Lottie).
    Previously, any onDraw callback received while PixelCopy was in flight caused the screenshot to be discarded. Introduces isOnlyAnimationRedraw to distinguish animation-driven redraws from structural layout changes.
    Uses View.hasTransientState() on the decor view, which Android propagates up from any animating descendant, as the signal.

server-v2.5.3

21 May 15:34
Immutable release. Only release title and notes can be modified.
1b6ca70

Choose a tag to compare

Patch Changes

  • b498d90: Reject semver values with leading zeros in local flag evaluation. Per semver 2.0.0 §2, numeric identifiers must not include leading zeros — values like 1.07.3 are not valid semver and should not match targeting conditions. Both override values and flag values are now validated; invalid inputs raise InconclusiveMatchException so the condition does not match.

core-v6.15.0

21 May 16:53
Immutable release. Only release title and notes can be modified.
beac5be

Choose a tag to compare

Minor Changes

  • 2282895: Add survey translations support. Surveys can carry per-language overrides for user-visible strings via a translations map keyed by language code. At display time the SDK resolves a language (init override → person property "language" → device locale), applies any matching translation onto the display model, and stamps the matched key as $survey_language on every survey event when a translation actually took effect.

    Configure via PostHogSurveysConfig.overrideDisplayLanguage. Matching is case-insensitive with a base-language fallback (e.g. "pt-BR" falls back to "pt").

android-v3.45.0

21 May 16:57
Immutable release. Only release title and notes can be modified.
beac5be

Choose a tag to compare

Minor Changes

  • 2282895: Add survey translations support. Surveys can carry per-language overrides for user-visible strings via a translations map keyed by language code. At display time the SDK resolves a language (init override → person property "language" → device locale), applies any matching translation onto the display model, and stamps the matched key as $survey_language on every survey event when a translation actually took effect.

    Configure via PostHogSurveysConfig.overrideDisplayLanguage. Matching is case-insensitive with a base-language fallback (e.g. "pt-BR" falls back to "pt").

server-v2.5.2

19 May 19:52
Immutable release. Only release title and notes can be modified.
d2cc7f7

Choose a tag to compare

Patch Changes

  • 27650da: Refactor PostHogQueue to be generic on Record and introduce EndpointSpec
    for per-endpoint codec, send, retry policy, and runtime knobs. No behavior
    change for events or session replay; sets up future log-record support without
    duplicating queue plumbing.

core-v6.14.2

19 May 19:44
Immutable release. Only release title and notes can be modified.
d2cc7f7

Choose a tag to compare

Patch Changes

  • 27650da: Refactor PostHogQueue to be generic on Record and introduce EndpointSpec
    for per-endpoint codec, send, retry policy, and runtime knobs. No behavior
    change for events or session replay; sets up future log-record support without
    duplicating queue plumbing.

android-v3.44.2

19 May 19:48
Immutable release. Only release title and notes can be modified.
d2cc7f7

Choose a tag to compare

Patch Changes

  • 27650da: Refactor PostHogQueue to be generic on Record and introduce EndpointSpec
    for per-endpoint codec, send, retry policy, and runtime knobs. No behavior
    change for events or session replay; sets up future log-record support without
    duplicating queue plumbing.

server-v2.5.1

07 May 16:11
Immutable release. Only release title and notes can be modified.
cb2b4ed

Choose a tag to compare

Patch Changes

  • e2f9884: Disable SDK setup when the API key is empty or whitespace after trimming.