WebmasterID logoWebmasterID
User agents

Mobile user agents: phones, tablets, in-app

Mobile user agents carry platform descriptors like iPhone or Android and often a Mobile token, but tablets and in-app browsers complicate the picture. An in-app browser (inside a social or messaging app) usually adds its own token to the string. This page explains the patterns and their pitfalls.

Partially verified

Mobile vs desktop tokens

Mobile browsers signal their context through platform descriptors such as iPhone, iPad, or Android in the parenthesised section, and phones commonly include a Mobile token. Desktop strings lack these mobile cues.

Tablets are the messy middle: an Android tablet may omit the Mobile token, and an iPad can present a desktop-class string, so tablet detection from the UA alone is unreliable.

In-app browser user agents

When a link opens inside another app's embedded browser (a webview in a social or messaging app), the user agent is typically the platform's webview plus an app-specific token identifying the host app. These tokens vary by app and version, so treat them as hints rather than fixed identifiers.

Because exact in-app tokens differ across apps and change over time, confirm specific tokens against the host app's own developer documentation rather than assuming a value.

How it appears in analytics and logs

A user agent with an iPhone or Android descriptor and a Mobile token is typically a phone. Tablets may omit the Mobile token or present desktop-class strings, and in-app browsers add an app-specific token.

Diagnostic use case

Distinguish phone, tablet, and in-app browser traffic from desktop, while accounting for tablets and in-app webviews that blur the line.

What WebmasterID can help detect

WebmasterID parses mobile user agents server-side into a coarse device/browser category, recognising common in-app webview tokens, and leaves ambiguous strings in an honest 'other' bucket.

Common mistakes

Privacy and accuracy notes

Mobile user agents describe device class and software, not a person. Parsing them into a coarse device category is privacy-safe. WebmasterID does not store raw visitor user-agent strings.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.