-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
iOS context not being attached #1437
Comments
@davidhsoftware can you copy and paste the error? the full stack trace? |
Maybe related to #1432 which is the same error message? |
Yeah, but this one is talking about the screen resolution. |
@davidhsoftware Is this on iOS 16.4 and do you have a stacktrace? |
I will send the stack trace and iOS version as soon as I am able (in ~13 hours). Thanks! |
@ueman the screen resolution already had this issue in the past, and there are tests about that. |
Apologies for the misleading guess, this was the same as the batteryLevel conversion issue in #1432 |
Platform
Flutter Mobile
Obfuscation
Disabled
Debug Info
Disabled
Doctor
Dart 3.0.0
Flutter (Channel stable, 3.10.0, on macOS 12.6 21G115 darwin-arm64, locale en-AU)
Version
7.5.2
Steps to Reproduce
Expected Result
See iOS context attached in Sentry
Actual Result
iOS context not attached in Sentry
factory Contexts.fromJson(Map<String, dynamic> data)
runsSentryDevice.fromJson(Map.from(data[SentryDevice.type]))
which breaks ontype 'int' is not a subtype of type 'double?'
It looks likedata["device"]["screen_height_pixels"]
anddata["device"]["screen_width_pixels"]
aredouble
, being assigned toSentryDevice.screenHeightPixels
andSentryDevice.screenWidthPixels
which areint?
Edit: these are indeed already casted, will update when I have access to the stack trace
Are you willing to submit a PR?
None
The text was updated successfully, but these errors were encountered: