-
Notifications
You must be signed in to change notification settings - Fork 235
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
FlutterInappPurchase.instance.acknowledgePurchaseAndroid(purchaseToken) is not working #101
Comments
Could you wrap ‘await’ and see what’s comming in ‘catch’ statement? |
I have already tried it.. |
Are you saying you are not receiving any message from catch statement? |
Yup.. I am NOT getting any messages in the catch statement. Moreover, I ran flutter in debug on adding a breakpoint at
The debugger never reached there. Also, on running with command - flutter run -v CHECK THIS |
@dipinarora9 Could you provide any output comming from |
Upon successful purchase, 'purchase- REACHING HERE' is being debugPrinted. This is the snippet of "valid" function and stream within "initPlatformState" function.
This is the logcat
|
Looks like it is stuck on querying |
@dipinarora9 Also it'd be useful if you can find anything related to our plugin |
Nope.. the app does not query any sort of Income Taxes.Also, I am migrating from the official in_app_purchase plugin to your flutter_inapp_purchase plugin. With the official plugin I didn't got any output stuck error, it was all working properly. And about the Connection attempt already in progress statement, Its not related to the app's logic. This issue is related to the flutter_inapp_purchase plugin itself. This statement is being printed when I call the following function.
My test purchase is successful but the Acknowledge purchase functionality of your plugin is not working and stuck at output without throwing any error whatsoever. |
Could you try |
You missed a parenthesis.
|
@hyochan please consider re-checking. A parenthesis is missing in 2.0.0+9 |
@dipinarora9 Sorry for this. Since I'm hanging around on the street, I couldn't firmly test this before releasing. Could you try |
@hyochan its still not fixed.
|
Oh man.. I am keep making silly mistake. Please try |
@hyochan The problem is fixed now! Thanks for such a quick fix. |
Version flutter_inapp_purchase: ^2.0.0+8
Problem faced in Android
Expected behavior
When called it should have returned me the purchase result with the state that my consumable product has now been acknowledged
Actual behavior
Payment is successful but
this acknowledgement function is returning nothing and being a future function it is stuck at waiting stage.
I am testing it on a real device.
Steps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: