Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    All Users, restores and entitlements fixes
    Users, restores and entitlements
    November 24, 2026
    3 min read

    A purchase made before sign-in disappears after logIn (anonymous user not merged)

    When a subscription bought before sign-in disappears after login, the purchase stayed with the anonymous user and the app is now asking about the signed-in user, who owns nothing yet. Make sure the app logs in with a stable user ID, the same on every device. Make sure the purchase is moved to the signed-in user at login, by your provider's merge or by a restore while that user is logged in.

    Symptom

    • A user subscribes during onboarding, creates an account or signs in, and the subscription is gone.
    • Tapping Restore brings it back.
    • Logging out and back in loses access again.
    • Your dashboard shows two customers for one person: an anonymous one with the purchase, and a signed-in one without.

    Why it happens

    Most subscription systems give each install an anonymous ID until you tell them who the user is. A purchase made then belongs to that anonymous ID. When you log in, the system either merges the anonymous user into the signed-in one or treats them as two people.

    Cause How to tell
    The login call happens before the purchase is recorded, or not at all The purchase is on an anonymous customer in your dashboard
    The app logs in with an ID that changes (session token, email that can change, a random UUID per launch) Several customers per person, each with a different ID
    The anonymous purchase belongs to another signed-in account already The store purchase was claimed earlier by a different user
    The app reads entitlements before login finishes A brief "not subscribed" state, fixed by a refresh
    logOut was called (on account switch or on launch) The device now has a new anonymous ID

    Confirm it

    1. Find the person in your dashboard by their store transaction or order ID, and see which customer owns the purchase: anonymous or signed-in.
    2. Log the user ID your app passes to the login call on two launches and on two devices. It should be identical.
    3. Check whether your code awaits the login call before reading entitlements.
    4. Search for logOut calls that run on launch or on screens other than an explicit sign-out.

    Fix

    1. Log in with a stable ID: your backend's user ID, never a session token, an editable email, or a random value.
    2. Await login, then read entitlements (or listen for the update the login triggers).
    3. Let the purchase follow the user: use your provider's anonymous-to-identified merge, or run a restore once right after login so the store purchase is sent with the signed-in user.
    4. Only call logOut when the user really signs out, and expect access to go with them.
    5. If the purchase is already owned by another account, decide whether it may move. Show the user which account owns it rather than failing silently.

    Stop it coming back

    • Test the journey "buy as a guest → create an account → reinstall → sign in" on both platforms before release.
    • Alert when one store transaction appears on more than one customer, or customers per person climb above one.

    If you use BillDog

    Before login, BillDog identifies the install with an anonymous ID that starts with $BillDogAnonymousID:. Calling logIn(appUserId) re-sends the device's store purchases tagged with that anonymous ID, so BillDog's server can move them to the signed-in user. The result also tells you whether that user is new.

    A purchase that already belongs to a different signed-in user stays with that user (see restore purchases). logOut() switches to a new anonymous ID, not the one the install had before. This was checked against the published SDK 1.1.1-beta.5 and BillDog's purchase API. It hasn't yet been reproduced on a device for this page.

    Related

    Sources

    Did this fix it?

    Frequently asked questions

    Should I call logIn on every launch?

    You can call it at launch with the signed-in user's ID. It's the same user each time, so nothing moves. What matters is never logging in with a temporary or changing ID, because each new ID is a new user.

    What happens to the anonymous user's data after logIn?

    That depends on your provider's identity model. Commonly the anonymous user's purchases follow the signed-in user, and a later logOut starts a new anonymous ID instead of returning to the old one.

    Why does logging out remove access?

    After logOut the device acts as a new anonymous user who owns nothing. The purchase stays with the account that was logged in. Logging back in with that account brings access back.

    Related Articles

    Users, restores and entitlements
    4 min read

    Restore purchases does nothing, or restores to the wrong account

    November 23, 2026
    Users, restores and entitlements
    3 min read

    Subscription bought on iOS isn't active on Android or the web

    November 25, 2026

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.