Skip to content
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

fix: FormatException when reading BatteryLevel #3485

Merged
merged 4 commits into from
Jul 22, 2024
Merged

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Jul 15, 2024

Fixes #3465

The mobile SDKs have battery_level as float, causing a FormatException when the .NET SDK tries to deserialize the event. We should remove the workaround with the next major.

@bitsandfoxes bitsandfoxes changed the title fix: fix: FormatException when reading BatteryLevel Jul 15, 2024
src/Sentry/Protocol/Device.cs Outdated Show resolved Hide resolved
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
@bitsandfoxes bitsandfoxes merged commit e747e42 into main Jul 22, 2024
21 checks passed
@bitsandfoxes bitsandfoxes deleted the fix/battery-level branch July 22, 2024 09:38
@bitsandfoxes bitsandfoxes mentioned this pull request Aug 16, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Crash with EnableBeforeSend enabled
3 participants