-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[in_app_purchase] Cannot start a new purchase after cancelling on iOS 14 #66886
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
Comments
@zodiark23 |
|
If it helps i can see this error logs when i run the code via xcode ( since i can't run it on debug just white screen)
I think this is the reason why its failing to complete those failed transaction via |
@zodiark23 thanks for the logs. |
I'll try again. I'll give you an update |
@darshankawar same thing with latest of beta version.
|
Related to #61047 |
Same thing @zodiark23 mentioned happened to me yesterday. Any workaround guys ? |
@DangKhoi1997 I haven't found any workaround, and we're starting our testing haha. @darshankawar should we wait another release of in_app_purchase? |
Haha it still works well in android . Yesterday i thought i did something wrong in my code but no :)) . Let wait for the next version of it . |
I'm also seeing this. After a purchase has been cancelled, a new purchase cannot be started for the same product. After rebooting the app it works again, but the same thing happens again every time if I cancel a purchase. |
@darshankawar I manage to get another iphone with iOS 12.4.8 and this is not happening. I didn't change anything and same version and same flutter version. Looks like this is only an iOS 14 issue. |
I can confirm. Only happens on iOS 14. |
@darshankawar I don't know if this is relevant, but I've only tried this with testflight users for which the purchases are free. I can't test this with "real" users because the version of our app using the new version of this library is not yet in production. This doesn't happen with v0.3.4+3 that's currently in production for our app. |
@zodiark23 Should the title of this issue be modified to say something like "cannot start a new purchase after cancelling on iOS" so that other people also find this easier? That's the problem people will encounter first. For example I found this issue by going through all issues in desperation 😄 |
This is the same issue as #66253 |
@koskimas I was initially thinking of doing that, however when i try to buy the item again this error pops out |
Just created a fix for this issue flutter/plugins#3106 |
Thanks @dennis-tra hope it gets merged soon |
@koskimas Thanks for identifying the similar issue. If you disagree or think this was closed by mistake and should have kept open, please write in comments and I'll reopen. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Since iOS 14 I can't seem to
finishTransaction
for failed purchases. This will happen if you buy a product then cancel it, this one will stay on SKPaymentTransactionQueue. However re-running the debugger will clear out the transactions.Steps to reproduce:
I tried this with in_app_purchase v0.3.4+8 and v.0.3.4+9 same thing.
Previously before iOS 14 this is not happening. Need help please.
Previously just by calling
.completePurchase()
for iOS its working properly.I'm also clearing the SKTransactionQueue with this code
The text was updated successfully, but these errors were encountered: