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

PostHog Firebase Installation ID Push Tracking

PostHog Firebase Installation ID push tracking: measure registration, refresh and delivery after the move away from deprecated FCM getToken().

· 3 min read

Push notifications only work if the device is registered with the right identifier. When registration quietly fails, nothing crashes and nothing logs an error. Users simply stop receiving messages, and your open rate drifts down for reasons nobody can name.

PostHog’s Android SDK 3.75.0 (and core 6.48.0) adds a new route for this. When you enable firebase_messaging_installation_id_enabled, the SDK registers the Firebase Installation ID (FID) instead of the deprecated getToken() value. Forwarding onRegistered to registerPushNotificationToken(installationId, appId) also refreshes the subscription even if the FID has not changed. That is a real change in how your push audience is built, so it deserves its own measurement.

Without it, you cannot tell a genuine drop in engagement from a gap in registration. The two look identical in a campaign report and need very different fixes.

Data Points to Track

  • push_registration_method (fcm_token, firebase_installation_id), set on every registration event
  • push_registration_result (success, failed, skipped_already_delivered, retry_pending)
  • push_registration_attempt number, so retry backoff is visible
  • registration_trigger (app_start, on_registered_callback, token_refresh, manual)
  • installation_id_changed (true / false) compared with the previous launch
  • notification_permission_state (granted, denied, not_asked)
  • sdk_version, app_version and os_api_level on each event
  • push_delivered and push_opened, joined back to the registration method

Setup Steps

  1. Upgrade the PostHog Android SDK to 3.75.0 or later (core 6.48.0 or later for shared code).
  2. Enable the flag firebase_messaging_installation_id_enabled for a small share of users first, using a feature flag so you can compare against the old method.
  3. Forward the callback. In your Firebase messaging service, pass the onRegistered result to registerPushNotificationToken(installationId, appId).
  4. Emit a registration event after each attempt with the properties above. Record failures as well as successes.
  5. Tag the cohort. Add push_registration_method as a user property so later delivery and open events can be split by it.
  6. Build a comparison: registration success rate, delivered rate and open rate for each method, by app version.
  7. Set an alert for any rise in retry_pending events lasting more than a day.

Actionable Insights

Begin with the registration success rate by method. A new method should match the old one within a point or two. If it is clearly lower, check that onRegistered is wired up on every path, including cold starts from a background launch.

Next, look at skipped_already_delivered. A high share is healthy, since it means the SDK is avoiding duplicate work. A share of zero suggests the app is re-registering on every launch, which wastes calls.

Then compare delivery and open rates for the two groups. If delivery holds steady but opens fall, the identifier is fine and your message content or timing is the issue. If delivery itself falls, treat it as an infrastructure problem and roll back the flag.

Finally, watch users with notification_permission_state set to denied. They will never register successfully, so exclude them from success rates or your numbers will look worse than reality.