Reputation: 43
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
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
Reputation: 61
Check paid app agreement is signed or not, it is also an important step that just slips through the cracks
Upvotes: 3