Raven-js / Angular 2 - Unknown Browser/Device

Hi
we’ve been searching for a way to set the user agent for sentry. This through an Angular2 project using the following tutorial. https://docs.sentry.io/clients/javascript/integrations/angular2/

For now we’re setting the user agent in the serverName config property (https://docs.sentry.io/clients/javascript/config/) but I would like to have the actual browser and device to be viewed in the currently “unknown” fields as shown in the image.

Anybody knows a way to solve this?

At first we thought to add the user_agent but this isn’t working, the idea to add this field came from the following link as there is a test for the field user_agent.
http://nullege.com/codes/show/src@s@e@sentry-HEAD@tests@sentry@plugins@useragents@tests.py/7/sentry.plugins.sentry_useragents.models.OsPlugin

I’m in the same boat.

We have a ReactNative application, and I’m trying to get the Device added here. I was overwriting the navigator.userAgent string, since that’s what I figured is used, but it doesn’t appear to be the case.

Ok, so the issue is we run raven-js in a webworker which fails at the _getHttpData when it checks for the _hasDocument and location.

It doesn’t have a document but the navigator is available there for the user-agent.