Skip to content

[in_app_purchase_storekit] StoreKit2 introductory pricing data is not available #161393

@gonzalogauto

Description

@gonzalogauto

Steps to reproduce

  1. InAppPurchaseStoreKitPlatform.enableStoreKit2();
  2. Configure introductory pricing in AppStore
  3. After calling this code final productDetailsResponse = await _inAppPurchase.queryProductDetails({productIds}); if we take a look at ProductDetails data from productDetailsResponse we can't see any 'introductory pricing' data. We only have sk2Product.subscription?.promotionalOffers.

This code does not retrieve introductory pricing offers

sk2Product.subscription?.promotionalOffers.firstWhereOrNull(
        (promotionalOffer) =>
            promotionalOffer.type == SK2SubscriptionOfferType.introductory,
      )

We only see promotional offers with the current implementation.

The native IOS modal shows the introductory pricing amount but the code mentioned at the top used to show the in-app modal does not contain the introductory pricing data.

I'm using
in_app_purchase_storekit: ^0.3.20+3

Expected results

sk2Product.subscription should have an introductoryPricingOffers list

Actual results

sk2Product.subscription does not provide an introductoryPricingOffers list

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.1.1 24B2091 darwin-arm64, locale en-AR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.96.2)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions