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
purchaseUpdatedListener called only once on app start, and never calls after requestSubscription call #985
Comments
Does anyone else having the same problem? @Strate have you called |
@hyochan yes, but actually this call happens after app restart |
@hyochan I've tried expo-in-app-purchase package, and there is no issue like this - evrything seems to be fine |
@Strate I want to see your code. Can't find any error myself :( |
this issue is absolutely infuriating. Is there a prior version where this is not the case? |
How would this be possible as the purchase is an argument in finishTransaction? Thus you need the event listener to get the argument to pass to finishTransaction. |
@Sophrinix finishTransaction expected to be called inside |
@hyochan sorry, but looks like I don't have an actual code right now, I've switched to Btw, there was nothing special in my code: register listener as soon as app started, and just follow readme. |
It turns out that this is a regression. If you use the following versions then everything works:
The problem comes when you try to use |
@Sophrinix I've just tried Also, please check again if you've called |
I confirm that reverting to 4.3.0 works. I was going nuts with the latest version, I've been debugging for over 1h trying to find the issue. |
If I may add, |
Same here, Downgraded from 4.4.8 to 4.4.3 and it is now working! |
I am having the same issue on Just read about downgrading, I am about to try that... Edit: This is a serious issue because:
|
I can also confirm that |
I had the same issue for a few days with RN 0.62.2 and react-native-iap 4.4.8 |
Had the same issue on iOS when upgrading to 4.4.8 which made some subscriptions not complete. Downgrading to 4.4.3 resolved the issue, for now. Is initConnection() mandatory? The doc makes it seems like it isn't |
Had the same issue as I didn't add the
I think this part "On iOS, it will simply call canMakePayments" should be removed, also I was really convinced it was optional because it wasn't in the example Adding the |
I'm on 4.4.9 and the issue described by this ticket is happening to me as well.
|
A lot of people are running into errors because |
I was also encountering this issue on v5.1.1.
You can now use this to wrap your app in your
|
Glad it helped. We have this in production since June.
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Hey, I've just migrated from expo-in-app-purchase to this library, and faced almost no error. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Version of react-native-iap
4.4.6
Version of react-native
0.61.5
Platforms you faced the error (IOS or Android or both?)
ios
Expected behavior
purchaseUpdatedListener
called on each time, afterrequestSubscription
callActual behavior
purchaseUpdatedListener called only once on app start, and never calls after requestSubscription call
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
Just follow readme and try to request subscription
The text was updated successfully, but these errors were encountered: