-
Notifications
You must be signed in to change notification settings - Fork 83
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] Prevent crashes with null check for saved call (Fixes #368) #420
base: main
Are you sure you want to change the base?
[Android] Prevent crashes with null check for saved call (Fixes #368) #420
Conversation
✅ Deploy Preview for capacitor-community-stripe ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
this should remove the errors for "callback resolve is not a method" |
Thanks for creating pull request. Is it a Stripe Android SDK spec that onVerificationCompleted and onVerificationCancelled are called multiple times? If so, call.resolve should be removed. ( But in that case, I think you should modify the Stripe Android SDK ) If we accept this change, I will make to be deprecate the following
And it should be recommended that the result be obtained only on events. But did you eventually reproduce the problem? I am at a loss to get pull requests for problems that can't reproduce. |
Another idea is to provide an argument to initialize with For plugin users, errors are important information to distinguish between successful and unsuccessful implementations. I would not want to inadvertently respond to errors that cannot be reproduced. |
No, this shouldn't be the case as far as I know.
Yes, agreed. If you aren't confident that this change makes sense, I will defer to your judgement here. |
@yankostadinov 's note: The error seems to happening within the first 5 seconds (as per Crashlytics) of a user's session in our app. So it seems to be a crash happening during initialization of the plugin or when resuming an activity with the plugin, which could help with reproducing it (I haven't been able to do so myself yet). @kentwilliams-stripe Does this still continue today? This is the most detailed information on this glitch. |
cc @rdlabo @Julian-Sam