Hi,
We use multiple capabilities to detect device type which I'd like to consolidate.(Current WURFL version 1.11.4.0.)
I was wondering if just using virtual capability "form_factor" serves the purpose to detect device types. Based on https://www.scientiamobile.com/capabilities, possible values for form_factor are Desktop, Tablet, Smartphone, Feature Phone, Smart-TV, Robot, Other non-Mobile, Other Mobile.
-Can you provide some examples of Other non-Mobile and Other Mobile which do not fit into other categories?
-Is there any default value that form_factor returns if device does not fit into any defined category?
-Is it recommended to use other capabilities like is_smart_phone, is_smart_tv, is_full_desktop is addition to form_factor to detect a device type?
e.g. For a smart_phone , form_factor = smartphone AND is_smart_phone = true
Device types I am mainly interested in are desktop, smart_phone, smart_tv, tablet and feature_phone.
Thanks in advance.
Device detection using form_factor
Re: Device detection using form_factor
Hi Viant,
Thanks for reaching out. To answer your questions:
Can you provide some examples of Other non-Mobile and Other Mobile which do not fit into other categories?
Other Mobile: A mobile device that does not fit any other mobile device definition.
Other Non-Mobile: A device that does not fit any other device definition.
Examples include hand-held gaming devices such as the Nintendo DS or Playstation Vita (other mobile), or home devices such as the Amazon Echo (non-mobile).
Is there any default value that form_factor returns if device does not fit into any defined category?
Desktop is the default return value.
Is it recommended to use other capabilities like is_smart_phone, is_smart_tv, is_full_desktop is addition to form_factor to detect a device type?
e.g. For a smart_phone , form_factor = smartphone AND is_smart_phone = true
If your goal is to identify a given user agent's form factor, and not filter for a specific type, then no, the form_factor virtual capability will use static capabilities such as is_smarttv and is_smartphone to return the appropriate result.
Hope this helps. Feel free to respond here or reach out to us at support@scientiamobile.com and we'll be more than happy to help.
Thanks,
Aaron
Thanks for reaching out. To answer your questions:
Can you provide some examples of Other non-Mobile and Other Mobile which do not fit into other categories?
Other Mobile: A mobile device that does not fit any other mobile device definition.
Other Non-Mobile: A device that does not fit any other device definition.
Examples include hand-held gaming devices such as the Nintendo DS or Playstation Vita (other mobile), or home devices such as the Amazon Echo (non-mobile).
Is there any default value that form_factor returns if device does not fit into any defined category?
Desktop is the default return value.
Is it recommended to use other capabilities like is_smart_phone, is_smart_tv, is_full_desktop is addition to form_factor to detect a device type?
e.g. For a smart_phone , form_factor = smartphone AND is_smart_phone = true
If your goal is to identify a given user agent's form factor, and not filter for a specific type, then no, the form_factor virtual capability will use static capabilities such as is_smarttv and is_smartphone to return the appropriate result.
Hope this helps. Feel free to respond here or reach out to us at support@scientiamobile.com and we'll be more than happy to help.
Thanks,
Aaron
Re: Device detection using form_factor
Hi Aaron,
Thank you for your quick response.
If the intention is to detect the device type, which capability/ies are more reliable?
There are static capabilities like is_tablet, is_smarttv. However, is_smartphone is a virtual capability. Also, I don't see any to filter by feature phone.
Thanks!
Thank you for your quick response.
If the intention is to detect the device type, which capability/ies are more reliable?
There are static capabilities like is_tablet, is_smarttv. However, is_smartphone is a virtual capability. Also, I don't see any to filter by feature phone.
Thanks!
Re: Device detection using form_factor
Hi Tony,
If your intent is to get the device type, we would suggest using the form_factor virtual capability (which takes is_smartphone into account as well). Also, you are correct that there is no specific capability to determine if a device is a feature phone, which is another reason why you will want to use form_factor to determine the device type.
I have gone ahead and created a separate ticket thread for you so please check your email and feel free to respond with any further questions or concerns there!
Thanks,
Aaron
If your intent is to get the device type, we would suggest using the form_factor virtual capability (which takes is_smartphone into account as well). Also, you are correct that there is no specific capability to determine if a device is a feature phone, which is another reason why you will want to use form_factor to determine the device type.
I have gone ahead and created a separate ticket thread for you so please check your email and feel free to respond with any further questions or concerns there!
Thanks,
Aaron
Re: Device detection using form_factor
Thank you for the information.
Who is online
Users browsing this forum: Google [Bot] and 12 guests