hasActiveSubscription static method

Future<bool> hasActiveSubscription()

Returns true if user has active subscription. Value is cached on device.

Checks if the user has an active subscription. The information is cached on the device. Use this method to determine whether the user has an active premium subscription.

Note: If you offer lifetime purchases, you must use hasPremiumAccess or isNonRenewingPurchaseActive method.

Implementation

static Future<bool> hasActiveSubscription() async {
  return (await _channel.invokeMethod('hasActiveSubscription')) ?? false;
}