Skip to content

Bug: CheckTrialOrIntroDiscountEligibility too slow #1893

Description

@jesus-mg-ios

Describe the bug
Add any other context about the problem here.

We are using checkTrialOrIntroDiscountEligibility in iOS with swift  after get the product, and we notice that this call is too slow (even 45s - 1 min). 

Purchases.shared.checkTrialOrIntroDiscountEligibility(productIdentifiers: ["productIdentifier"]) { result in
....
}
  1. Environment
    1. Platform: iOS
    2. SDK version: 4.10
    3. StoreKit 2 (enabled with useStoreKit2IfEnabled) (Y/N): N
    4. OS version: 15.5
    5. Xcode version: 13.4.1
    6. How widespread is the issue. Percentage of devices affected: Unknown/Random
      Additional context

Environment: Real device & simulator. iOS 15.5
SDK Version: "4.10.0"
Code that is too slow

Purchases.shared.checkTrialOrIntroDiscountEligibility(productIdentifiers: ["productIdentifier"]) { result in
....
}

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