Mobile device detection can be achieved through WURFLThe purpose of ScientiaMobile's Wireless Universal Resource FiLe is to detect mobile devices. HTTP Rules Engine leverages their comprehensive database to allow custom logic to be defined around how mobile devices are handled.. Additionally, WURFL provides basic descriptions for mobile devices. Rules Engine leverages WURFL in the following two ways:
Features: WURFL variables may be used within certain features to dynamically determine a feature's behavior based on the requester's mobile device description. The following features support WURFL variables:
The Device
The WURFL database is updated on a regular basis to include the latest set of mobile devices.
Capability | Variable | Description | Sample Value(s) |
---|---|---|---|
Brand Name |
%{wurfl_cap_brand_name} |
A stringRefers to one or more numbers, characters, and/or symbols. that indicates the brand name of the device. |
Samsung |
Device OS |
%{wurfl_cap_device_os} |
A string that indicates the operating system installed on the device. |
IOS |
Device OS Version |
%{wurfl_cap_device_os_version} |
A string that indicates the version number of the OS installed on the device. |
1.0.1 |
Dual Orientation |
%{wurfl_cap_dual_orientation} |
A BooleanRefers to data that can either be true or false. that indicates whether the device supports dual orientation. |
true |
HTML Preferred DTD |
%{wurfl_cap_html_preferred_dtd} |
A string that indicates the mobile device's preferred document type definition (DTD) for HTML content. Three sample values are provided on the right. |
none xhtml_basic html5 |
Image Inlining |
%{wurfl_cap_image_inlining} |
A Boolean that indicates whether the device supports Base64 encoded images. |
false |
Is Android |
%{wurfl_vcap_is_android} |
A Boolean that indicates whether the device uses the Android OS. |
true |
Is App |
%{wurfl_vcap_is_app} |
HTTP Large and ADN Only A Boolean that indicates whether a native application requested content. |
true |
Is Full Desktop |
%{wurfl_vcap_is_full_desktop} |
HTTP Large and ADN Only A Boolean that indicates whether the device provides a full desktop experience. |
true |
Is IOS |
%{wurfl_vcap_is_ios} |
A Boolean that indicates whether the device uses iOS. |
false |
Is Robot |
%{wurfl_vcap_is_robot} |
HTTP Large and ADN Only A Boolean that indicates whether the device is considered to be an automated HTTP client (e.g., a robot crawler). |
true |
Is Smart TV |
%{wurfl_cap_is_smarttv} |
A Boolean that indicates whether the device is a smart TV. |
false |
Is Smartphone |
%{wurfl_vcap_is_smartphone} |
A Boolean that indicates whether the device is a smartphone. |
true |
Is Tablet |
%{wurfl_cap_is_tablet} |
A Boolean that indicates whether the device is a tablet. This is an OS-independent description. |
true |
Is Touchscreen |
%{wurfl_vcap_is_touchscreen} |
HTTP Large and ADN Only A Boolean that indicates whether the device's primary pointing device is a touchscreen. |
true |
Is Windows Phone |
%{wurfl_vcap_is_windows_phone} |
HTTP Large and ADN Only A Boolean that indicates whether the device is a a Windows Mobile 6.5/Windows Phone 7 or higher. |
true |
Is Wireless Device |
%{wurfl_cap_is_wireless_device} |
A Boolean that indicates whether the device is considered a wireless deviceFor the purposes of this capability, PCs and laptops are not considered to be mobile devices.. |
true |
Marketing Name |
%{wurfl_cap_marketing_name} |
A string that indicates the device's marketing name. |
BlackBerry 8100 Pearl |
Mobile Browser |
%{wurfl_cap_mobile_browser} |
A string that indicates the browser used to request content from the device. |
Chrome |
Mobile Browser Version |
%{wurfl_cap_mobile_browser_version} |
A string that indicates the version of the browser used to request content from the device. |
31 |
Model Name |
%{wurfl_cap_model_name} |
A string that indicates the device's model name. |
s3 |
Progressive Download |
%{wurfl_cap_progressive_download} |
A Boolean that indicates whether the device supports the playback of audio/video while it is still being downloaded. |
true |
%{wurfl_cap_release_date} |
A string that indicates the year and month on which the device was added to the WURFL database. Format: |
2024_december |
|
Resolution Height |
%{wurfl_cap_resolution_height} |
An integerRefers to a whole number (e.g., 1, 2, 3, etc.). that indicates the device's height in pixels. |
768 |
Resolution Width |
%{wurfl_cap_resolution_width} |
An integer that indicates the device's width in pixels. |
1024 |
Edgecast CDN