Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAvailablePurchases on iOS does not return the active subscriptions #2716

Open
Saikedo opened this issue Apr 2, 2024 · 3 comments
Open

Comments

@Saikedo
Copy link

Saikedo commented Apr 2, 2024

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
@yedi97
Copy link

yedi97 commented Apr 4, 2024

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

@Saikedo
Copy link
Author

Saikedo commented Apr 5, 2024

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

@clauds-macedo
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants