Page 1 of 1

Detect DPI/retina

Posted: Mon Dec 10, 2012 3:51 am
by frodehansen
Is there a way to detect if the device has as Retina display through WURFL?

Re: Detect DPI/retina

Posted: Mon Dec 10, 2012 9:45 am
by sriram
Hi frodehansen,

For non-iOS devices, WURFL will provide both physical screen sizes and screen resolutions, where available, to help you determine the pixel density of the display. The relevant capabilities are:
physical_screen_width
physical_screen_height
resolution_width
resolution_height


For iOS, this becomes a bit more complicated since Apple has chosen to hide the underlying device's hardware information from the User-Agent. This means that we do not know if the iPhone running iOS6 is an iPhone 3GS or 4 or 4S or 5. So we err on the side of caution and provide capability values that represents the lowest specification among iPhones that run that version of the iOS. We are currently working on a solution for this issue and we may have a partial solution soon.

Cheers!

Re: Detect DPI/retina

Posted: Tue Dec 11, 2012 4:48 am
by frodehansen
Thanks for your answer.

I hope you find a ok solution for the iOS issue.

Re: Detect DPI/retina

Posted: Tue Jan 15, 2013 4:06 pm
by elrichar
Do you guys have any further updates on this topic? My Product folks are asking generally the same question here about how we can have the WURFL data accurately reflect the iPhone5 users. Any updates or ideas would be appreciated. Thanks.

Re: Detect DPI/retina

Posted: Tue Jan 15, 2013 4:41 pm
by sm_support2
Hi Eliotte, would you like us to contact you and discuss offline?

Re: Detect DPI/retina

Posted: Tue Jan 15, 2013 4:54 pm
by elrichar
Sure - you guys should have my email address, let me know if not. How about you email me the contact information of who I should call (I'll probably call tomorrow, but possibly still today).

Re: Detect DPI/retina

Posted: Wed Feb 20, 2013 9:26 am
by murela
Hi,

Did you find a proper solution to detecting retina/ high display ratio devices?

anders

Re: Detect DPI/retina

Posted: Sat Feb 23, 2013 4:48 pm
by kamermans
Hi Anders,

Unfortunately, there is not a reliable way to detect Retina devices at this time. Note that for other, non-Apple devices, you can always look at the resolution_width / physical_screen_width (in millimeters).

Re: Detect DPI/retina

Posted: Thu Jan 23, 2014 10:41 am
by robertmujica
Hi,

I have been testing WURFL database with the following IPad user agents

IPAD_RETINA = "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25";
IPAD_1 = "Mozilla/5.0 (iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10";
IPAD_3 = "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; es-es) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B360 Safari/531.21.10";
private const string IPAD_MIN = "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A406 Safari/8536.25";

But it always return the same value for all them:
physical_screen_width = 148
resolution_width = 768

So i think this is wrong, also I'm trying to get those values in order to figure out if a Device is retina enabled or not, if there is a better way to do this please can you give me details.

Thanks
Robert

Re: Detect DPI/retina

Posted: Fri Jan 31, 2014 10:16 am
by kamermans
Please see the post directly above this one:
Unfortunately, there is not a reliable way to detect Retina devices at this time.
Furthermore, it is likely that there will never be a way to differentiate the hardware version of Apple devices using only the User-Agent string since Apple has gone to extreme lengths to hide this information.