Access device/browser information through RetoolContext Object

Looking for a way to collect device and browser information from users accessing a Retool web app. (Mac Sonoma 14.5/ Chrome 126.0.6478.127). We're building a tool to help test another product and would really benefit from not having the users manually input this information for every task.

It looks like similar information is provided for mobile devices in the RetoolContextMobile object (The RetoolContextMobile object | Retool Docs). Any reason that information isn't provided for web apps? Privacy? Permissions?

You can use navigator.userAgent (the browser API). Navigator: userAgent property - Web APIs | MDN

The reason Retool Mobile exposes that information specifically is because some clients are native apps, which don't support all the things that browsers do.

1 Like

Thanks!