and using this method “Purchases.shared.restoreTransactions { (purchaserInfo, error) in { }”
BUT! I’d like check the purchases by Identifier in which indicated in Products, when I address to “purchaserInfo”. How can I implement this?
Best answer by sharif
Hello!
It depends what you want to do, but if you want to check which products have been purchased:
purchaserInfo.activeSubscriptions is a set that contains any active subscriptions. You can look up subscriptions by product identifier.
purchaserInfo.nonSubscriptionTransactions is an array that contains all non-subscription products purchased (lifetime and consumable). You can loop through the array to see what products have been purchased and the dates they were purchased.
It depends what you want to do, but if you want to check which products have been purchased:
purchaserInfo.activeSubscriptions is a set that contains any active subscriptions. You can look up subscriptions by product identifier.
purchaserInfo.nonSubscriptionTransactions is an array that contains all non-subscription products purchased (lifetime and consumable). You can loop through the array to see what products have been purchased and the dates they were purchased.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.