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
buySubscription returns E_UNKNOWN despite successful purchase #287
Comments
@Gaia-Nutrition Would you check this old-issue? It' might be same cause. |
@JJMoon in #201 the error was |
Hello, Same issue behavior with "buyProductWithoutFinishTransaction" or "buyProduct". Version 2.2.1 the return stored is We updated the module because we reproduce this bug on production with previous versions . |
The interesting part is that the restore purchase also fails for my users when this happens. It only happens to about 1% of our iOS users. |
@fierysolid Same case , we are around 5% of purchases on iOS who failed. When the customer try to buy again, he has a restore purchase pop up. |
Hi everyone. I hope it is fixed in our new version today which is |
Please reopen when still facing the problem. |
@dooboolab
|
@dooboolab yes Im using that version. |
@danrevah Please try |
@dooboolab it worked once, but while I tried again I kept getting this errors. (used v 2.3.17) |
@JJMoon Do you have any clue on this? he is using iPhone6S |
I've reopened the issue. cc @JJMoon If more people votes to this issue, we will try harder to dig this more deeply. |
@danrevah I hope you to refer to this document. |
@JJMoon I have faced the same issue. any solution? buySubscription throws exception and yet payment is deducted. I need to have results data to store and validate them. |
+1 I've the same problem |
Try using addAdditionalSuccessPurchaseListenerIOS in |
Has someone already using in production ? |
@hyochan , I've tried to do that but without success.
|
@cbfranca Please follow the actual code. You are not even using Also you do not need extra |
@hyochan
|
Check above code. I think you need to refactor your code to fit its lifecycle. |
@hyochan Not works for me. My test cenario is:
Another doubt: Do I have to use finishTransaction() in subscriptions too ? |
I'm seeing this error too. And I think I know one way to reproduce it. Version of react-native-iap^2.4.1 Version of react-nativehttps://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz PlatformiOS, when testing in TestFlight on a real device. ObservationsI noticed that when any RNIap functions were called in my app, iOS would ask me to enter a password for a previous iTunes/App Store user (which I have since logged out and replaced via iOS Settings). I read somewhere online that this is an issue that dogs iPhone users from time to time: sometimes an app is bought with one iTunes account, then the phone is switched to a new iTunes account, but the app continues to ask for the password for the old iTunes account. I tried to delete my app (and TestFlight) and reinstall with the new App Store user, to no avail. The only way I could get rid of this behavior was to wipe the device. Once I did this, I could no longer reproduce this error. Actual Behavior
Steps to reproduce the behavior
Hope this helps someone! |
After trying many things I'm still with the same problem and more. At code bellow, the RNIap.buySubscription(sku) returns undefined. Please, did someone solve it?
|
👍 We are experiencing this issue was well. It seems to be happening to about 10% of our users currently. We're going to try adding this listener, but I don't think that ultimately this is a great solution. @hyochan Is there any way we can get more detailed information in the cases where this throws, or is that a standard response from the StoreKit APIs? In every error case the message seems to be "Cannot connect to iTunes Store", even when the purchase is successful. |
We have a very similar problem with 3.4.6: 1st purchase attempt fails with |
Hello! I'm experiencing the same issue after calling RNIap.requestSubscription() I get an undefined result but the payment succeeds, the credit card is charged. The only way of that user to get it past is by restoring the purchase. Did anyone got a fix for this? I'm using version 3.5.9 |
Version of react-native-iap
2.2.2
(because any newer version fails on iOS due to #279)Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
No error should be thrown. Purchase was successful (live and in production)
Actual behavior
E_UNKNOWN
error is returned from PromiseOur Sentry.io error tracking reports this:
Tested environment (Emulator? Real Device?)
Real Device. Live customers. Very consistenlty fails
Steps to reproduce the behavior
When testing the procedure with Sandbox users the error cannot be reproduced.
The text was updated successfully, but these errors were encountered: