-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
[Android] purchaseUpdatedListener firing only once, not on every subscription transaction #1122
Comments
I upgraded React Native to 0.63.2 but it haven't helped. |
After bumping react-native-iap to 4.6.3 no change. |
I have exactly the same issue, used to be on 4.4.9, bumped to 4.6.3 and still occurs |
Unfortunately I don't have solution for this. |
This is very strange. Are you saying that you attempt to purchase again after the first purchase, the |
Oh, I see. You are having a problem with the next subscription event. Let me test this out and come back. |
We are facing the same issue, I was using 4.4.9 and tried to downgrade and upgrade to latest 5.1.1 but result is still same. Only getting event first time. |
any solution to this? |
As a temporary solution I save first receipt from subscription event and validate it on each application initialization - it works, but I tested it only for Android. |
Hi, @hyochan thanks |
Thanks for the reminder! I'll test this out tomorrow. |
@hyochan |
@Kalesberg I will definitely try out this week and share updates. However, this library is used by many others and the implementation on |
Related for |
@hyochan |
@Kalesberg Could you kindly verify that |
@hyochan will do that! |
@hyochan |
@Kalesberg Could you put android logcat where it triggers Please tell me what's coming in |
@hyochan , hope it helps |
I am trying to look into this now. By the way can you give me better file format? |
@Kalesberg You may also check this one out. https://stackoverflow.com/questions/56744971/google-play-billing-library-developer-error-code-5-if-i-want-to-consume-or-ackno |
@hyochan |
the iOS version works fine but just the android phones are problematic |
We are just finding out the problem. However, following the logcat you've provided, it looks like to me that the |
@hyochan |
@hyochan , any updates on the plugin? |
Current state (with newest version of iap) for ios: app receives first receipt and then when staying in foreground it won't receive next receipt. After closing app and opening it again it gets all pending receipts. |
@hyochan |
@hyochan added the logs, the purchase listener is called with, but |
Hi guys, |
Hello, can somebody check if this is still an issue in |
We end up using Real-time developer notifications for handling renewals and cancellations. I think that many people that are coming from web background, assume that every renewal will trigger the listener. |
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. |
Having this issue still in 2022. Unfortunately I dont see any thing in this thread that explains what is happening. On IOS its working fine and I'm receiving the purchase updates, on Android I only receive the first receipt and then the monthly renewal receipts never arrives to IAP.purchaseUpdatedListener |
on iOS you get the renewal updates on the client. |
Ok, thanks that explains a lot. Will look into the server 2 server part. |
Version of react-native-iap
"react-native-iap": "4.5.4",
Version of react-native
"react-native": "0.61.4",
Platforms you faced the error (IOS or Android or both?)
Android, not tested on iOS
Expected behavior
purchaseUpdatedListener firing every time purchase is received
Actual behavior
purchaseUpdatedListener firing only once for first recipt, then nothing happens
Tested environment (Emulator? Real Device?)
Real device, run in dev env with test google account (subscription recurring every 5 minutes - email is incoming but receipt is not).
Simplified code I am using:
The text was updated successfully, but these errors were encountered: