Skip to content

presentPaywallIfNeeded always return Null #886

Description

@imSaharukh
  if (Platform.isIOS) {
    //get all Entitlement
    var purchaserInfo = await Purchases.getCustomerInfo();
    var entitlements = purchaserInfo.entitlements.all;

    log("entitlements $entitlements");

    var result = await Purchases.presentPaywallIfNeeded(
        entitlements.values.first.identifier);

    log("result $result");

    return;
  }

i'm always getting flutter: type 'Null' is not a subtype of type 'FutureOr' error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions