Skip to content
Discussion options

You must be logged in to vote

@Richard-HeadCoach The main issue is that when you call

fetchProducts({ skus: productIds, type: 'subs' });

the results go into subscriptions, not products.
That’s why your console shows fetched items but the UI stays empty.

✅ Fix:

const { connected, products, subscriptions, fetchProducts } = useIAP(...);

and render:

subscriptions.map((s) => (
  <TouchableOpacity key={s.id} onPress={() => handleAppleSubscribe(s.id)}>
    <Text>{s.title}</Text>
    <Text>{s.displayPrice}</Text>
  </TouchableOpacity>
))

Your fetchProducts call is already correct — no need to change its syntax.

Also, check the official example here:
👉 https://hyochan.github.io/expo-iap/docs/examples/subscription-flow
It shows…

Replies: 4 comments 27 replies

Comment options

You must be logged in to vote
1 reply
@Richard-HeadCoach
Comment options

Comment options

You must be logged in to vote
22 replies
@Richard-HeadCoach
Comment options

@jslok
Comment options

@Richard-HeadCoach
Comment options

@jslok
Comment options

@hyochan
Comment options

Comment options

You must be logged in to vote
1 reply
@hyochan
Comment options

Comment options

You must be logged in to vote
3 replies
@hyochan
Comment options

Answer selected by hyochan
@Richard-HeadCoach
Comment options

@hyochan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS
3 participants