Reputation: 51
I'm developing an iOS app with an internal account system and integrated Apple in-app purchases. Users can create accounts with any email and make purchases through their Apple ID. Apple mandates a restore button for subscriptions, which I implemented using transactions.currententitlements. However, I face a challenge: a user might purchase a subscription with one account (e.g., [email protected]) and later restore it on another device with a different account (e.g., [email protected]).
How can I track these subscriptions in my database to prevent multiple account associations with the same Apple in-app purchase? Is there a specific, unchanging field in the receipt data that is unique to the user's Apple ID, allowing me to track and update the correct account in my database when a restore occurs? I'm currently using the receipt for verification but need a reliable way to link these transactions to individual users, despite different emails used in my app.
Note: Apple rejected my app and asking me to provide a restore button even though I explained this to them.
Upvotes: 0
Views: 73