Skip to content

Read OS and device information in Dart code #401

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

Closed
ueman opened this issue Apr 6, 2021 · 2 comments
Closed

Read OS and device information in Dart code #401

ueman opened this issue Apr 6, 2021 · 2 comments

Comments

@ueman
Copy link
Collaborator

ueman commented Apr 6, 2021

In order to better support all the different platforms we need something like the Enricher from the dotnet guys:
https://github.com/getsentry/sentry-dotnet/blob/674627baf25e24eb2634443960adece3c25aab96/src/Sentry/Internal/Enricher.cs

It's also needed in order to not go through message channels after #344 is implemented and for platforms which have no native integration.

This way we can get all the environment, OS and device information.

There are a couple ways to get some of the information:

  1. Dart's Platform class has some information (this would also work for non Flutter projects)
  2. https://pub.dev/packages/device_info_plus
@marandaneto
Copy link
Contributor

marandaneto commented Apr 6, 2021

it's sort of a dup of #262
that issue is Web-specific, but the concept is pretty much the same

@ueman
Copy link
Collaborator Author

ueman commented Apr 6, 2021

Oh yeah, I'll close this in favor of the other one.

@ueman ueman closed this as completed Apr 6, 2021
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

No branches or pull requests

2 participants