Getting Logical Resolution
Posted: Thu Mar 29, 2018 1:39 pm
I feel like this is a pretty simple question, but I'm having trouble figuring it out. I want to determine the logical resolution of devices, such as the iPad. I am currently using the resolution_width property, which gives me a value of 1536. I assumed I could use the density_class property to find the Pixel Density of the iPad, and calculate its logical resolution of 1024. However, for all of the iOS devices that I have tried, I am getting "1.0" from the density_class property, so this doesn't seem useful for calculating the logical resolution. How can I determine the device's logical resolution using WURFL capabilities?