According to Apple's developer guide, if I use IAP in my App, I have to provide a button which the user can restore their already bought IAPs in the case he/she changed phone, reinstalled app, or something. If I call PurchaseProduct(['iap-id']) and the user has already bought it, the AppStore tells me, that it has been purchased, so it's ok. But if I have more IAPs, how can I find out, which was purchased before? I see that I should call restoreCompletedTransactions somehow, but I don't find it.
Greetings
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
According to Apple's developer guide, if I use IAP in my App, I have to provide a button which the user can restore their already bought IAPs in the case he/she changed phone, reinstalled app, or something. If I call PurchaseProduct(['iap-id']) and the user has already bought it, the AppStore tells me, that it has been purchased, so it's ok. But if I have more IAPs, how can I find out, which was purchased before? I see that I should call restoreCompletedTransactions somehow, but I don't find it.
Greetings
Hi
I've added this method:
And it works fine, the UpdatedTransactions event called with State=Restored, but how can I find what IAP has been restored?
Hi Fenistil
Now you can get any purchased and restored or ... products,
If you call RestoreCompletedTransactions method you can get a list of all products with states.
Thank you for feedback.
Regards
Thanks, it works!