crd
crd

Reputation: 43

In-App Purchase in Flutter iOS platform - no subscriptions returns from AppStore

I have a problem with retrieving my subscription list in a Flutter application.

Steps have been already done:

The code:

final bool isAvailable = await _inAppPurchase.isAvailable(); // true


if (Platform.isIOS) {
  final InAppPurchaseStoreKitPlatformAddition iosPlatformAddition = _inAppPurchase.getPlatformAddition<InAppPurchaseStoreKitPlatformAddition>();
  await iosPlatformAddition.setDelegate(ExamplePaymentQueueDelegate());
}

final ProductDetailsResponse productDetailResponse = await _inAppPurchase.queryProductDetails(_kProductIds.toSet());

But, queryProductDetails method returns ProductDetailResponse with ID "monthly_subscription" in notFoundIds list.

And that’s all.

I suppose that’s not a Flutter or package issue. I think I misunderstood something in the manuals… ?

Upvotes: 3

Views: 2484

Answers (2)

Elihu Del Valle
Elihu Del Valle

Reputation: 386

I had the same issue as you. Turns out that I was using the subscription group reference name as the _kproductId because I would beusing the equivalent for the Play Store with success I changed to use the individual reference name and voila! I hope that was the issue for you as well

Upvotes: 0

sheheryar501
sheheryar501

Reputation: 61

Check paid app agreement is signed or not, it is also an important step that just slips through the cracks

Upvotes: 3

Related Questions