Browser context object

The following table describes the keys in the browser context object:

KeyTypeDescriptionValue
user_agentstringThe browser user agent.NoteFollow industry conventions so that Discover can automatically detect the device and app_type.n/a
devicestringThe device that the user is on.Computed automatically from user_agent.pctabletmobile
app_typestringDiscover automatically gets this value from user_agent.browser - user_agent starts with Mozilla and doesn’t contain one of the webview keywords listed see below.webview - user_agent starts with Mozilla and contains WebViewApp or wv.native - user_agent does not start with Mozilla.
If you have suggestions for improving this article, let us know!