react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

getAvailablePurchases on iOS does not return the active subscriptions

Open Saikedo opened this issue 3 months ago • 3 comments

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

Saikedo avatar Apr 02 '24 04:04 Saikedo

Is your problem occurring on a production or dev environment? i'm also having the same problem on production environment, dev works fine

yedi97 avatar Apr 04 '24 03:04 yedi97

@yedi97 The opposite for me, I am testing in sandbox.

Saikedo avatar Apr 05 '24 16:04 Saikedo

@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

clauds-macedo avatar Apr 08 '24 12:04 clauds-macedo