Restore purchases does nothing, or restores to the wrong account
A restore can only find purchases made by the store account signed in on this device. When Restore unlocks nothing, the purchase was usually made with another Apple Account or Google account, on the other platform, or was a consumable. When it unlocks the wrong user, the app account that was signed in during the restore isn't the one that paid. Check which account is signed in, then decide whether a purchase may move between app accounts.
Symptom
- The user taps Restore purchases and nothing unlocks, with no error.
- Restore unlocks a different app account from the one that paid, for example a shared family tablet.
- Restore fails with a message that the purchase belongs to another account.
- Coins or credits don't come back after reinstalling.
Why it happens
| Cause | How to tell |
|---|---|
| Paid with a different Apple Account or Google account | The device's store account isn't the one on the receipt or order email |
| Bought on the other platform (iOS vs Android) | The store on this device has no record. Your server does |
| A consumable | Consumed purchases are never returned by the store |
| The wrong app user is signed in when Restore runs | The purchase attaches to whoever is current at that moment |
| The purchase already belongs to another app account | Your server refuses or moves it, depending on your policy |
| Restore only reads the local cache, never asks the store | Works after a reinstall elsewhere, fails here (iOS without AppStore.sync()) |
Confirm it
- Which store account? iOS: Settings → [name] → Media & Purchases. Android: the account shown in the Play Store profile. Compare it with the receipt or order email.
- Which platform? Check where the purchase was made. Only your server can carry it across platforms.
- Which app user? Log the user ID your app sends with the restore. It should be the account the user expects to unlock.
- What does the store return? On iOS, iterate
Transaction.currentEntitlementsafterAppStore.sync(). On Android, callqueryPurchasesAsyncfor bothSUBSandINAPP. Empty means the store has nothing for this account.
Fix
- Different store account: ask the user to sign in to the store account that paid, then restore again.
- Other platform: have the user sign in to the same app account on both platforms, and grant access from your server, not from the device's store.
- Restore with the right user signed in. Log the user in before offering Restore, and send that user ID with the restore.
- Pick an ownership policy: either move the purchase to the new app account, or keep it with the original owner and tell the user which account owns it. Show a clear message for the second case, not a silent failure.
- iOS: call
AppStore.sync()when the user taps Restore. It may ask them to sign in. Then readTransaction.currentEntitlements. Don't callsync()on every launch. - Consumables: keep balances on your server keyed to the app account. A store restore won't bring them back.
Stop it coming back
- Put Restore behind sign-in, or show which account it will restore to.
- Test with two app accounts and one store account on the same device, and check your ownership policy does what you intend.
If you use BillDog
restorePurchases() asks the store, then sends every purchase it finds to BillDog's server for the user currently logged in:
- iOS: calls
AppStore.sync(), then readscurrentEntitlementsand unfinished transactions. - Android: queries both
SUBSandINAPP.
BillDog keeps a purchase with its original owner. A purchase that already belongs to another app account isn't moved: the restore fails with a purchase-owner conflict (PurchaseOwnerConflict on Android, PURCHASE_OWNER_CONFLICT from the API), saying the purchase belongs to another account. Purchases made while the user was anonymous on this device follow them when they log in (see the next page). 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
Why does Restore find nothing for a user who definitely paid?
The store only returns purchases made by the store account signed in on this device. If the user paid with a different Apple Account or Google account, or on the other platform, a restore here can't find it.
Should restoring move a subscription to whoever taps Restore?
That's a policy choice. Moving it lets one paid account unlock unlimited app accounts. Keeping it with the original owner is safer, and the user who tapped Restore is told the purchase belongs to another account.
Do consumables come back on restore?
No. Consumed purchases are gone from the store's records. Only subscriptions and non-consumables can be restored, so track consumable balances on your server.