-
Notifications
You must be signed in to change notification settings - Fork 23
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
IapHub.buy() doesn't return anything #20
Comments
I'm seeing a similar issue. After connecting to a debugger and testing in a sandbox I'm getting a Update: I upgraded to 3.0.9 and still see the same issue. Note: I am running this on iOS 14 beta 2. I don't believe that is the cause of this issue though. Update #2: I upgraded to 4.0.0 and am still seeing the issue that Iaphub.buy() never resolves. |
Hey @corasan, we tried to analyze what could cause the issue with @captaincole but we haven't found the culprit yet (can't reproduce the issue on our side), still digging... |
Awesome @captaincole 🙂 |
@iaphub yeah I still have the issue on version 4.0.2 too |
We pushed a PR to fix the issue in react-native-iap (here) 🙂 |
I'm seeing this problem too: "react-native-iap": "4.6.3", ios 14.2 (yes, running on the real device) @iaphub EDIT: |
Hi @fogg4444, did you fix the issue by updating react-native-iap to 5.0.0? |
I am facing same issue on call Iaphub.buy() on iOS platform. |
Hi, I have had the same problem and by comparing different devices I found that it's not launching the iTunes login dialogue. Using Using an iPad Mini which is stuck at IOS v12.5.5 (the maximum for this hardware), running from XCode and with the app in sandbox mode, I see " Purchase Started !!" in the XCode output panel, but it never gets past that. No exception is caught, the transaction is never returned, the promise never times out. When using an iPhone on iOS v15.4.1 with exactly the same app and setup, I get a username/password login dialog popup at the same moment, and after logging in with my sandbox Apple ID account which I setup in appstore connect, it all works. I had signed out of iTunes on the iPad prior to testing help force this login (as you can't sign in to the iPad iTunes generally with the sandbox account). So I'm guessing in this case, the iTunes/Store login isn't being displayed for some reason, but the IAP code is kind of waiting for the dialog to be submitted forever? The requirement of using a real device makes this very difficult to test broadly. Anyway I thought this information might help narrow down the causes for others diagnosing this behaviour. |
Hi @scipilot, We've seen iOS bugs (not because of the IAPHUB library) like this one in the sandbox environment (not happening in production), especially on older versions of iOS. |
When I try to use the
buy()
method it doesn't do anything after the purchase is done, blocking me from doing anything after it. It seems as if the promise is never finished, the code never reachesconsole.log(transaction)
orfinally {}
. This used to work a couple of days ago. I do see they receipt in the IAPHUB dashboard though.I also see this in the Xcode logs:
So the purchase is successful.
react-native-iaphub v3.0.9
react-native-iap v4.4.3
react-native v0.63.2
The text was updated successfully, but these errors were encountered: