react-native-iap
react-native-iap copied to clipboard
hooks do not work when making a subscription on ios
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
Environment: testing
- react-native-iap:12.13.0
- react-native: 0.72.4
- Platforms (iOS, simulator):
Same problem
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
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.
+1 on trying a real device.
+1, same issue on simulator.