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

hooks do not work when making a subscription on ios

Open joomoodle opened this issue 3 months ago • 5 comments

Description

I am trying to implement subscriptions in my app but when I call the requestSubscription method when I enter the password for the sanbox account it tells me that everything is fine but in my hooks where I check the currentPurchase it never has a value and the successful purchase is not detected

image

image

Environment: testing

  • react-native-iap:12.13.0
  • react-native: 0.72.4
  • Platforms (iOS, simulator):

joomoodle avatar Mar 14 '24 05:03 joomoodle

Same problem

iArchin avatar Mar 15 '24 13:03 iArchin

Are you using the withIAPContext hoc?

I also might double check that that you're connected by logging the connected variable available in the hook

benglasgow avatar Mar 20 '24 00:03 benglasgow

I think it's a simulator issue, when I had this issue I tried completing the flow on a physical device it worked as expected. Hope this helps.

id0Sch avatar Mar 26 '24 13:03 id0Sch

+1 on trying a real device.

benglasgow avatar Mar 26 '24 17:03 benglasgow

+1, same issue on simulator.

huix9527 avatar Apr 01 '24 04:04 huix9527