hyochan / react-native-iap

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

Recent network Issue when using getAvailablePurchases() method #2586

Open StephenTANM opened 1 year ago

StephenTANM commented 1 year 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 4 months ago

Same here

Colt-ain commented 4 months ago

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