Extending / Porting
Learn how to create a port of Mobile Detect in a different language or library.
{
// Current released version. Respects semver.
"version": "x.x.x",
// Specific HTTP headers that attest for a "mobile" device.
"headerMatch": { ... },
// Array with HTTP header names that can potentially contain the "User-Agent" string.
"uaHttpHeaders": [ ... ],
// Amazon CloudFront headers.
"cloudFrontHttpHeaders": [ ... ],
// Regexes ordered by priority of "mobile" devices.
"uaMatch": {
"phones": { ... },
"tablets": { ... },
"browsers": { ... },
"os": { ... }
}Last updated
Was this helpful?