poitch / dart-matomo

A Dart Matomo Client
MIT License
20 stars 39 forks source link

feat: Add web user agent #2

Closed krille-chan closed 4 years ago

krille-chan commented 4 years ago

Hey,

we are using your package in our app and it's working like a charm. Thank you very much for your work. Our Sentry has found an exception while using this on web:

MissingPluginException(No implementation found for method getProperties on channel flutter_user_agent)

It seems like there is no implementation for flutter_user_agent in web, so I have implemented a way to get the user agent from the browser using the universal_html package. I hope you find it useful :-)

Best regards and stay healthy

poitch commented 4 years ago

Hi,

I had originally implemented this for mobile-only so I hadn't checked for a way to retrieve the User-Agent for isWeb.

I'll generate a new version and publish it shortly.