Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

PostHog Android Carrier Lookup ANR: Startup Tracking

PostHog Android 3.72.8 reads the network carrier off the main thread. Learn startup ANR tracking steps and the missing $network_carrier gap.

· 3 min read

App start is the most fragile moment in an Android session. If the main thread stalls for a few seconds, the system shows an “App not responding” dialog and many users never come back. Ironically, analytics code can be part of the problem. PostHog’s Android SDK 3.72.8, released on 22 October, fixes a case where reading the network carrier during event capture could cause an ANR at app start.

Without tracking this, you may blame the wrong thing. A rise in startup ANRs after an SDK upgrade looks like a regression in your own code, and a fix that removes the stall can quietly change your data too. Per the release notes, the carrier is now read in the background, so events captured before that read finishes, such as “Application Installed”, are sent without the $network_carrier property.

Data Points to Track

  • sdk_version: the PostHog Android version in the build
  • app_start_type: cold, warm or hot
  • time_to_first_frame_ms: how long launch took to draw
  • anr_count_startup: ANRs in the first ten seconds of a session
  • first_event_name: the first event captured in the session
  • network_carrier_present: true or false on each early event
  • events_missing_carrier: share of events without a carrier value
  • device_ram_class: low, mid or high end hardware

Setup Steps

  1. Record your baseline for startup ANR rate and time to first frame on the current SDK version.
  2. Upgrade to PostHog Android 3.72.8 or later in a staged release.
  3. Tag every session with sdk_version so before and after cohorts are easy to compare.
  4. Add network_carrier_present as a property on your first events after launch.
  5. Check dashboards that break down by carrier and note which events now arrive without one.
  6. Compare startup ANRs between old and new versions using Play Console vitals and your crash tool.
  7. Test on a low-end device with a slow cold start to confirm the stall has gone.
  8. Write down the gap so analysts know why early events lack a carrier.

Actionable Insights

If startup ANRs fall on the new version and time to first frame improves, the change is doing its job. Keep the gain visible by pinning the SDK version in your release notes.

If carrier breakdowns suddenly show a large “unknown” group, that is the expected side effect, not a data loss bug. Look at first_event_name. Install and launch events will be affected most, while later events should still carry a carrier.

If you filter or segment installs by carrier, move that analysis to a later event, such as the first screen view, where the value is usually available. For reports that must include install events, treat the carrier as optional.

Finally, if ANRs stay high after upgrading, the SDK was not your only cause. Look at other work on the main thread during launch, such as disk reads, large initialisers and third-party SDKs.

Common Pitfalls

Do not compare ANR rates across versions without matching device classes.

Do not treat a missing carrier as proof that a user was offline.

Do not rebuild old dashboards around the carrier property for install events.

Keeping Startup Data Honest

Startup health and event completeness pull in opposite directions here. Track both, label the trade-off, and review each release. A short note in your tracking plan explaining why early events lack a carrier will save your team hours of confusion later.