dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.78k stars 634 forks source link

Recent network Issue when using getAvailablePurchases() method #2586

Open StephenTANM opened 10 months ago

StephenTANM commented 10 months ago

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

When calling getAvailablePurchases() after calling initConnection() successfully I get a network connection issue unrelated to being connected to the internet.

Expected Behavior

Call getAvailablePurchases() and get an array of purchases

Screenshots

Screenshot 2023-10-19 at 12 54 54 PM

Environment:

To Reproduce Steps to reproduce the behavior:

  1. Install library and its pods
  2. Make sure your logged into your apple id and that you have a .storekit file for testing
  3. Make a test purchase
  4. Call getAvailablePurchases() after initConnection()

[Optional] Additional Context

No internet issues, tested on both WiFi and cellular provider

Colt-ain commented 1 month ago

Same here

Colt-ain commented 1 month ago

Fixed by calling setup({ storekitMode: "STOREKIT2_MODE", });