react-native-iap
react-native-iap copied to clipboard
getAvailablePurchases on iOS does not return the active subscriptions
Description
When working with renewable subscriptions, call to getAvailablePurchases on iOS does not return the active subscriptions. It returns those when I first buy them but when I restart the app and call getAvailablePurchases again, it returns an empty array. On Android, it always returns the active subscription.
I am using the storekit 2 in case if it`s relevant.
Expected Behavior
Expecting to get an array of all active renewable subscriptions.
Environment:
- react-native-iap: 12.13.0
- react-native: 0.68.2
- Platforms: iOS
Is your problem occurring on a production or dev environment? i'm also having the same problem on production environment, dev works fine
@yedi97 The opposite for me, I am testing in sandbox.
@yedi97 Same for me. In some cases it returns me an empty array on a production environment for both Android and iOS. Please, let me know if you have a solution. :s