-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
restoring purchase made with redeem code doesn't work on IPhone SE, works on others #288
Comments
@eis |
@dooboolab which version can I upgrade to? Current version has issue #279 and 2.2.2, the one working before that has issue #287, both no-go issues. I can't break existing purchase functionality. |
Currently, I prefer you to use |
I have same problem with iPhone 5s. In production environment, RNIap.getAvailablePurchases() returns an empty array when using iPhone 5s, sandbox works fine. On iPhone 7 purchase can be restored without problems in production. I'm using react-native-iap version 2.3.1 |
@JVallius If it works fine in |
Also I prefer you guys to use |
We are of course using different accounts for sandbox (testing) and prod, it is not possible even to do any other way. But the point is this:
This has been tested with >20 devices (with 4 of them being iphone SE devices), so something seems to be wrong with using some of the older iphone models and production - in sandbox it seems to work. |
But haven't yet upgraded the library, will try that next. |
@eis Ok it sounds like concurrent with issue in flutter_inapp_purchase. I feel this happens cause of fragile support on the |
@eis I've just updated this in |
@dooboolab I can confirm that this is still happening for |
I too were unable to reproduce this reliably. That said, two of our users have already reported the exact same issue in production so I suspect it's still not fixed. |
@dooboolab unfortunately we're having currently an unrelated issue which is getting our app rejected in app store review, so have been unable to test. Will come back to report once we get it resolved. |
Note though that like I wrote in the initial message,
so if the fix was related to OS version like in the description of the issue you linked, it might be something different. |
Yes I can confirm that this strange problem is still here. I implemented a custom logging system for my app to see debug messages in production environment, here are the results. When I'm trying to restore a purchase, the RNIap.getProducts(itemSkus) method returns a correct in-app product from Apple. But next, when calling RNIap.getAvailablePurchases() method, the return value is an empty array. The product is redeemed by a code and is visible in App Store. Using iPhone 5s.
I'll try to get logs about what will happen if I'm trying to make an actual purchase. |
i am also seeing this in production on an iPhone X |
@eis @mars-lan I've been experimenting this issue today, and found one missing changes when P.S. Strangely, last time when I edite my code in |
I can confirm that 65cea1e didn't fix this issue. User still failed to restore purchase redeemed via promo code on iPhone SE. @eis @JVallius @joshbalfour can you confirm the same too? |
Also seeing this issue with redeem codes failing to restore purchases on 2.3.23. |
Version of react-native-iap
1.3.6
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
Redeeming purchases would work
Actual behavior
Redeeming purchases don't work
Tested environment (Emulator? Real Device?)
Real device, IPhone SE
Steps to reproduce the behavior
This is the relevant code I'm using to update product bought status:
This seems to work for android & ios, in sandbox and in production. However, in production we've started getting complaints from people using IPhone SE that when after they redeem their promo code for their iap, the status will not update to reflect that. Indeed, when I found an IPhone SE to play with, this seems to be the case. However, for all other iphones I've tested - for example IPhone 6, which is of older generation than IPhone SE - things seem to work fine. Any idea what could be wrong? This seems to be really hard to debug, as even for IPhone SE sandbox testing with purchases seems to work ok. However, there are no iap promo codes in sandbox, so I can't test that specifically, and I can't really debug the released production version either.
Updating OS version doesn't seem to have any effect, the problem occurred with 11.4.1 as well as after updating to 12.0.1.
The text was updated successfully, but these errors were encountered: