Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hooks do not work when making a subscription on ios #2703

Open
joomoodle opened this issue Mar 14, 2024 · 5 comments
Open

hooks do not work when making a subscription on ios #2703

joomoodle opened this issue Mar 14, 2024 · 5 comments

Comments

@joomoodle
Copy link

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):
@iArchin
Copy link

iArchin commented Mar 15, 2024

Same problem

@benglasgow
Copy link

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

@id0Sch
Copy link

id0Sch commented Mar 26, 2024

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.

@benglasgow
Copy link

+1 on trying a real device.

@huix9527
Copy link

huix9527 commented Apr 1, 2024

+1, same issue on simulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants