jinSasaki / InAppPurchase

A Simple and Lightweight framework for In App Purchase (Store Kit 1)
MIT License
288 stars 30 forks source link

Restore with product ids #26

Closed erf closed 4 years ago

erf commented 5 years ago

If you do a restore purchase call, how do you know which product ids were restored? Do you have to do a fetchProduct first and then assume all those ids were restored if a restore call was success? Would it be possible to add a list of product ids in the restore sucess call?

jinSasaki commented 5 years ago

@erf After restored, the receipt in the device has the correct and latest status. I recommend you to fetch product ids from the receipt if you want to use user's latest status.

However, I think it is also helpful that the restore 's response has product ids. I will think about it in the next version. Thanks!