In our iOS app we want to achieve the following behavior of `restorePurchases()`:
- If the purchase was made on anonymous ID and user logged in - transfer subscription to the user ID.
- If the user credential switched but Apple Account stays the same - transfer to the new user.
- If subscription was associated with a user and then that user logged out - we want to show message “This subscription is already linked to another account. Please sign to that account to restore”.
How to implement the user story 3? This is required to prevent double spent and subscription duplication - when the one subscription becomes available on multiple accounts. Is there any built-in checks allowing to tell if the subscription is already linked to a non-anon user?
We use ‘Transfer to new App User ID’ setting for restoring.!-->
