Am developing an iOS app which have auto renewable subscriptions. Normal purchase flow is working fine but am facing issue in restoring transactions.
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]
Am using this to restore transactions and Apple returns all the transactions made in my app. I dont know how to find exact transaction of the user and validate receipt. My app validate receipts by sending it to our server which sends to Apple and gets status.
Exact Scenario is:
User A installs app and buys subscription in device 1.
User A installs app in 2nd device and want to restore the subscription made in device 1. How to handle this scenario??
This question might seems duplicate but I haven't found the exact scenario am looking for.
Thanks..