-
Notifications
You must be signed in to change notification settings - Fork 130
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
[pay_android] GooglePayHandler.onActivityResult kotlin.UninitializedPropertyAccessException - lateinit property loadPaymentDataResult has not been initialized #261
Comments
Hello @ekaterina-demeshko-idf. Are you able to determine steps to reproduce this? |
Hello @JlUgia we are using showPaymentSelector and userCanPay methods of Pay class. |
Hello @JlUgia We have encountered additional crashes related to the GooglePayHandler in the new 2.0.0 version of the pay plugin. Here are the details of the new stack trace:
The issue seems to occur when handlePaymentSuccess is called and the paymentData is not null, but loadPaymentDataResult has not been initialized in time. It appears that an additional instance of GooglePayHandler is created, leading to a scenario where the result is received by an instance where loadPaymentData was not called. It turns out that in one instance, the loadPaymentData function was called, where loadPaymentDataResult was initialized, the resolve task function was called from it, and the result already arrived in another instance of GooglePayHandler, where loadPaymentData was not called. However, since the callback exists, the request code and intent result were received. Seems like this causes the UninitializedPropertyAccessException for loadPaymentDataResult. Do you have any suggestions on how we can address this issue or any additional checks we should implement to prevent this? Thank you for your assistance. |
Hello guys, any updates here? |
Crash on Payment Success Handling in GooglePay Plugin Hello, We've encountered a crash that is significantly impacting some of our clients using the GooglePay plugin in Flutter. The crash occurs when handling payment success, affecting over 350 users. Here is the relevant stack trace:
This issue is causing crashes on the payment success handler, and it is currently affecting a significant number of our users. Impact:
It is basically the same thing that was described above, do you happen to have any updates here? |
This PR should fix: #276 (review) I think that we can wait until the release for now |
Are there any updates on when this is going to be fixed? We are also having the exact same issue. |
We are getting crashes on new 2.0.0 version of pay
This issue has 4 crash events affecting 4 users in the last 48 hours.
Users are Samsung or xiomi, Android 13 and 14.
The stacktrace:
The text was updated successfully, but these errors were encountered: