Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

PostHog Mobile SDK 4.0 Upgrade Tracking

PostHog mobile SDK 4.0 upgrade tracking: check Capture v1, per-event options and flag changes on Android, iOS and Flutter lose no events.

· 3 min read

On 27 November 2026 PostHog shipped coordinated major releases of its mobile SDKs: Android 4.0, iOS 4.0 (with Swift Package Manager support), Flutter 6.0 and Kotlin Multiplatform 0.12 and 1.0. The changelog lists Capture v1, per-event controls, AI capture and updated feature flag APIs.

A major version bump on the SDK that sends every event is risky. If something changes quietly, your funnels, retention curves and experiment results shift, and it looks like user behaviour rather than an upgrade side effect.

Why This Metric Matters

Mobile apps ship slowly and users update slowly. After you release, two or more SDK versions will send events side by side for weeks. If the versions behave differently, you cannot compare one cohort with another.

Without version-level tracking you cannot tell a real drop in sign-ups from an SDK that stopped sending a property.

Data Points to Track

Compare the old and new SDK on the same app build:

  • $lib and $lib_version on every event, so you can split by SDK version
  • app_version and app_build of the host app
  • events_per_session for each SDK version
  • event_delivery_rate: events sent by the app divided by events received
  • batch_failure_count and retry_count per day
  • per_event_option used, if you start using the new per-event controls
  • feature_flag_called count and flag_value per flag
  • flag_evaluation_error count after the flag API changes
  • crash_free_sessions for the build that contains the upgrade

Setup Steps

  1. Read the release notes and migration guide for each platform you ship, and list the breaking changes.
  2. Upgrade in a debug build first. Fire a fixed script of events: app open, sign-up, purchase and one flag check.
  3. Compare what the app sent with what PostHog received. The counts must match.
  4. Release the upgraded build to a small share of users, such as 5 percent, using staged rollout in the app store.
  5. Build one dashboard that splits key events by $lib_version and app_version.
  6. Check feature flag results against the previous version for the same users. Any change in flag values needs an explanation.
  7. If you adopt per-event options, change one event first and confirm it behaves as documented before using it widely.
  8. Widen the rollout only when delivery rate and crash-free sessions stay level for 48 hours.

Actionable Insights

Events per session fall on the new version. Something is not sending. Check which event names disappeared first.

Flag values differ between versions. The updated flag API may evaluate differently, or your code reads the result in a new way. Fix this before an experiment reads the data.

Delivery rate is lower than the old version. Look at batch failures and retries before you blame user behaviour.

Everything matches. Roll out fully and note the upgrade date on your charts, so a later step change is easy to explain.

Common Mistakes to Avoid

Do not upgrade the SDK and ship a feature in the same release. You will not know which one moved the metrics. Do not upgrade Flutter and its native layers at different times without checking the combined behaviour. And remember that old app versions keep sending on the old SDK, so keep both versions in your dashboards.