Every messaging and analytics SDK has to answer one question: who is this device? When the answer is wrong, a returning customer looks like a stranger, a new sign-up inherits someone else’s history, and your retention numbers drift without any error to point at. You rarely notice until a campaign reaches the wrong person or a funnel shows far more “new” users than your sign-up count.
Airship’s Android SDK 20.12.3 (5 November 2026) fixed one such case: a device could stay on an anonymous contact after its contact had been deleted, instead of identifying again with its named user. If your app uses Airship for push or in-app messaging, this is a good moment to check that your own identity events tell you when a device is attached to the wrong contact.
Why This Matters
Identity is the join key for almost everything: lifecycle messages, cohort analysis, lifetime value and attribution. A device stuck on an anonymous contact means events that belong to a known user are filed under nobody. Messages meant for a named user may not arrive, and your analytics will show a drop in identified users that looks like churn but is really a data problem.
Without identity tracking you only see the symptoms: falling push opt-in rates, a rising anonymous share of sessions, or support tickets saying “I never got the message”.
Data Points to Track
Record these properties on identity-related events, using your own event names:
identity_state: anonymous, named, or transitioningnamed_user_id_present: true or false (never the raw ID itself in analytics events)identify_trigger: login, app_launch, contact_deleted, token_refreshcontact_changed: true if the contact differs from the previous sessiontime_anonymous_seconds: how long the device stayed anonymous after loginsdk_versionandapp_versionplatformandos_versionpush_opt_in_statusat the time of the eventidentify_result: success, failed or retried
Setup Steps
- Update the Airship Android SDK to 20.12.3 or later, or to the current 21.x release if you are ready for a minor upgrade.
- List every place your app sets or clears the named user: login, logout, account deletion and token refresh.
- Fire an
identity_state_changedevent from each of those places with the properties above. - On every app launch, compare the identity your own backend expects with the one the SDK reports, and record a
identity_mismatchevent when they differ. - After a user deletes their account or you delete a contact, log the next identify attempt and its result.
- Segment your dashboard by
sdk_versionso you can see whether the share of mismatches drops after the upgrade. - Add an alert when anonymous sessions from logged-in users rise above your normal baseline.
Actionable Insights
Anonymous share of logged-in sessions. This should be close to zero. If it is not, users are losing their identity somewhere between login and the next launch.
Mismatch rate by SDK version. A fall after upgrading confirms the fix reached your users. If it stays high, the cause is in your own login or logout code.
Time anonymous after login. Long gaps mean messages sent in that window go to the wrong audience. Shorten the gap or hold messages until identity is confirmed.
Opt-in by identity state. If anonymous devices show much lower opt-in, you may be undercounting your true audience.
Cohort comparison. Compare retention for users who passed through a contact deletion against those who did not. A large gap suggests identity problems are hiding in your churn numbers.
Identity data is personal data, so log states and outcomes rather than identifiers, and follow your retention policy.