-
Notifications
You must be signed in to change notification settings - Fork 66
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
Crash on trying to collectPaymentMethod with low battery #124
Comments
@robertsammons sorry for the trouble here - we've identified the crash on the SDK side and will get a fix in the next release1. Until then, this should be able to be worked around on the application side by ensuring the Note the SDK side crash is not because the delegate doesn't have the optional Footnotes |
@bric-stripe Thanks for the reply, unfortunately the work around is likely a lot of work from my side, just the way I've built it means I have a connect readers screen that has the delegate reference then obviously disappears as it closes. I'll definitely consider changing this in the future as the additional methods like low battery would be useful to know. One question I have is we're not sure if this was introduced in V2.3.0 or if it has always been there, just thinking of reverting back to an older version if the bug was introduced with this version. It may have just matched up to their being more readers from our side in use around the same time frame but worth an ask. |
I checked our git blame and the problem has been there since the first 2.0.0 release 😞
There may be some not terribly elegant, but not overly complicated, options/band aids here for a short term solution. In our Example code we have a
if you don't need the added multiple listener support that can probably be simplified a good bit. |
Perfect, thanks for that. You're right I think that'll do the job for now without too much work. |
Thanks for solving this one! |
Summary
We are encountering a crash on several of our readers when trying to call the collectPaymentMethod with a low battery. We get a crash trace back that mentions "reportLowBatteryWarning"
Code to reproduce
Code is in production, can provide privately if need be
iOS version
iOS 15.1
Installation method
Stripe Package Manager
SDK version
Based on logs we believe this started with 2.3.0 but are on the latest 2.4.0
Other information
Attached crash trace from Xcode.
I'm not sure if this is a required method to support but it isn't mentioned as a required method?
The text was updated successfully, but these errors were encountered: