Restore Purchases After AppleID Change

Hi


Try to restore purchases under debug (in sandbox env) using:


SKPaymentQueue.default().restoreCompletedTransactions()


Getting a list of restored transactions.


Then signing in with different AppleId and restore purchases again.

Getting the very same list of transactions from the original AppleID.


I've tryed to sign in into main accoun, into sandbox account, change iCloud account, restart device, reset settings on it - nothing changing.


Why I face this beheviour? Is it normal? Will it occure in sandbox only or real users suffer the same?

Replies

Try logging out of the app store, deleting the app from the device then reinstalling from Xcode and logging in only when asked to do so by the App Store. In the sandbox the username is sticky.

>Is it normal?


In that example, yes, basically, unless you log out from the first account before trying the second. Does that match your process, or does the issue persist regardless?


>change iCloud account


If the issue persists, is the device itself logged into iCloud and by which user? Remember, there are limits to how many iCloud accounts a given device can be associated with, based on what the activity is.

Now suddenly problem has just dissappea: changing sanbox account I getting list of purchases valid for active AppleID.