public async Task RequestAsync(InappPurchaseItem item) { try { #if DEBUG await CurrentAppSimulator.RequestProductPurchaseAsync(item.Id).AsTask().ConfigureAwait(false); #else await CurrentApp.RequestProductPurchaseAsync(item.Id).AsTask().ConfigureAwait(false); #endif } catch (Exception) { } }
public Task RequestPurchaseAsync(InappPurchaseItem item) => InappPurchase.RequestAsync(item);