isNonRenewingPurchaseActive static method
Returns true
if current user has purchased standard in-app purchase with given productIdentifier
.
Returns false
if this product is refunded or never purchased. Includes consumables, non-consumables or non-renewing subscriptions. Apphud only tracks consumables if they were purchased after integrating Apphud SDK.
Purchases are sorted by purchase date, so it returns Bool value for the most recent purchase by given product identifier.
Implementation
static Future<bool> isNonRenewingPurchaseActive(
String productIdentifier,
) async {
return (await _channel.invokeMethod<bool>(
'isNonRenewingPurchaseActive',
{'productIdentifier': productIdentifier},
)) ??
false;
}