Closed Fox9MonoGame closed 6 years ago
On iOS items are immediately consumed. On Android you need to track if they consumed it or when you get your purchases there is a Consumed state. https://github.com/jamesmontemagno/InAppBillingPlugin/blob/master/src/Plugin.InAppBilling.Abstractions/InAppBillingPurchase.cs#L61
I don't know if I need to restore a consumable in-app purchase(50 coins) because I don't know if the user has already consumed his 50 coins in my game. If the user has consumed the 50 coins, then I don't need to restore the in-app purchase. But on the other hand, if he hasn't consumed his in-app purchase yet, then I need to restore his 50 coins.
How can I check the ConsumptionState of an in-app purchase? I need to be sure that he has already consumed the in-app purchase.
` public async Task WasItemPurchased(string productId)
{
var billing = CrossInAppBilling.Current;
try
{
var connected = await billing.ConnectAsync(ItemType.InAppPurchase);