DEV Community

Discussion on: How to capture errors and send platform-specific information to Sentry in Flutter?

Collapse
 
maks profile image
Maksim Lin

Great article!
Good news is sending the platform information in the extras is no longer necessary as support for contexts interface has now been added to the Dart sentry package, using which I documented as part of a blog post I wrote recently: manichord.com/blog/posts/bird-watc...

Collapse
 
venkatd profile image
Venkat Dinavahi

Hi, thanks for your article, but should clarify that fetching this platform info is still necessary. Only difference is that we would want to store this info in the context property instead of the extra property.

Collapse
 
maks profile image
Maksim Lin

Thanks for the feedback, yes I probably should place more emphasis on this in my article, but I do clearly link in my article to a class in my own open source app that demonstrates how to get the platform data to send to Sentry: github.com/maks/SketchNotes2/blob/...

Thread Thread
 
venkatd profile image
Venkat Dinavahi • Edited

Thanks, that source code is very helpful. I wonder if they'd be open to a PR integrating the package with device_info and package_info :)
I'll check if they're interested once we have it working in our app.