-
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
Battery Level not being refreshed #121
Comments
Hi @blairio - thanks for writing in. Our intent is that the However, we've identified a bug in the SDK where the value doesn't update unless you implement the We'll aim to have that bug fixed in the SDK in our January release. The values will have precision just because they're floating point values - a 32-bit two's compliment float can't represent Please let us know if the workaround makes that property behave as you'd expect! Thanks again for reporting. |
Thanks I will try it out. |
Seems to work, thanks. |
Summary
Periodically we ask the device for updated information including battery level so we can accurately track and display the battery level of the device to the user. We expect this value to change over time as the device is used.
Lately, after we retrieve this value the first time on device connect or app launch it no longer seems to change on subsequent requests for the battery level. It always reports that first value.
Furthermore, the value seems to have a strange amount of precision.
Example:
0.9900000095367432
Code to reproduce
Example method we call when creating a payment intent.
iOS version
14.8
Installation method
Cocoapods
SDK version
2.1.1 and 2.3.0
Other information
Seems to affect Chipper and Wisepad3
The text was updated successfully, but these errors were encountered: