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

getPurchaseHistory() hangs up /freezes the app

Open carlosmellado opened this issue 8 months ago • 1 comments

Description of the issue: When I try to call getPurchaseHistory() , the app freezes. No errors... nothing

Description of what you expected to happen: A history of purchases is returned or error thrown

Environment:

  • react-native-iap:
  • react-native:
  • Platforms (iOS simulator):
  • SDK version 12.11.0

To Reproduce Steps to reproduce the behavior:

Execute the next code:

      await initConnection(); 
  
      const purchaseHistory = await getPurchaseHistory(); //HERE THE APP FREEZES
        
      console.log(`Returned ${JSON.stringify(purchaseHistory)}`); 

Is anyone having the same issue?

carlosmellado avatar Nov 06 '23 15:11 carlosmellado

yeap, promise not resolved

anatoolybinerals avatar Mar 07 '24 09:03 anatoolybinerals