Ehsan Bhatti
Ehsan Bhatti

Reputation: 13

Retrieving Subscriptions IAP Product List Using Flutter for iOS

I am implementing auto renewable subscriptions in Flutter. I have successfully implemented them for Android using this package https://pub.dev/packages/in_app_purchase. However, it is not working on iOS.

I have followed all of the instructions to create the auto renewable subscription in app center, but when I try to fetch the list of products in the app it returns null. Please help me to resolve this issue I am stuck on this. Thanks in advance.

Upvotes: 1

Views: 1685

Answers (1)

enc_life
enc_life

Reputation: 5169

It's most likely a product configuration issue in App Store Connect or you're not testing on a physical device. Common things to check:

  1. You're using a physical device (iOS simulators don't like StoreKit APIs)
  2. Your products in App Store Connect are in the 'Ready To Submit' state (don't forget to include the screenshots)
  3. You've signed your 'Paid Applications Agreement' in App Store Connect (this is required even for testing)

This blog post covers these cases and more in a bit more detail: Configuring In-app Products is Hard

Upvotes: 1

Related Questions