Hello,
I have a significant problem concerning the billing APIs.
My iOS app has its own user account handling so that the user can switch the device or have multiple devices with data in sync.
Now the user can purchase an auto renewing subscription which is (of course) implemented using the APIs of Apple.
The problem is the following situation:
- User with AppleID X signs in with his account A.
- He purchases the auto renewing subscription (obviously with AppleID X) while being logged into his account A. Now account A has the benefit of the subscription.
- Now he uninstalls the app and reinstalls it.
- He logs into another account B and restores the purchase. Now also account B has the benefit of the subscription.
- How can I avoid this which is a major flaw? How can my server identify which AppleID is linked to which purchase?
A simple way would be to read out the UUID of the user but I know this is not allowed.
How can I fix this? Any help is highly appreciated!
Thanks in advance.