hyochan / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.hyo.dev
MIT License
2.87k stars 648 forks source link

getSubscriptions return empty array. #2612

Open thuongtv-vn opened 1 year ago

thuongtv-vn commented 1 year ago

Description

My application is supporting from iOS version 13. I just upgrade react-native-iap from v12.3.0 to v12.11.0. But after upgraded when the app tries to get subscriptions, it returns empty array.

Expected Behavior

It should return list of subscriptions.

Environment:

To Reproduce Steps to reproduce the behavior:

  1. initConnection
  2. getSubscriptions({skus: ['sub_1', 'sub_2', ......]})
  3. get the array from storekit 1: [{}]
thuongtv-vn commented 1 year ago

It fetched all subscriptions on simulators:

But it did not work on real device: iPhone 14 Pro, OS 16.6

amitsonit commented 10 months ago

same problem for me simulator and physical device both not getting subscriptions. @thuongtv-vn did you added storekit config file in Xcode?

hyu-uit commented 10 months ago

Make sure that you added bank account to Apple Developer Account

juanjlunar commented 10 months ago

I have the same issue, is there a way to test that it is an Apple issue?