Getting Logical Resolution
-
- Posts: 4
- Joined: Thu Aug 15, 2013 7:51 am
Getting Logical Resolution
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?
Re: Getting Logical Resolution
Hi Niranjan,
Due to the actual device model information not being in the user agent string and iOS being available on multiple device models, it is exceedingly difficult to identify a specific iOS model from just the user agent string. For this reason both the resolution and density_class capabilities supports the lowest specced devices running that OS version. We do have a product called WURFL.js that is able to identify Apple models as well as their resolution. However density class is not available for that platform. If you have any questions feel free to let me know and I'll be happy to help.
Best,
Amar
Due to the actual device model information not being in the user agent string and iOS being available on multiple device models, it is exceedingly difficult to identify a specific iOS model from just the user agent string. For this reason both the resolution and density_class capabilities supports the lowest specced devices running that OS version. We do have a product called WURFL.js that is able to identify Apple models as well as their resolution. However density class is not available for that platform. If you have any questions feel free to let me know and I'll be happy to help.
Best,
Amar
Re: Getting Logical Resolution
thank you!amark wrote: ↑Thu Mar 29, 2018 1:55 pmHi Niranjan,
Due to the actual device model information not being in the user agent string and iOS being available on multiple device models, it is exceedingly difficult to identify a specific iOS model from just the user agent string. For this reason both the resolution and density_class capabilities supports the lowest specced devices running that OS versiongeometry dash subzero We do have a product called WURFL.js that is able to identify Apple models as well as their resolution. However density class is not available for that platform. If you have any questions feel free to let me know and I'll be happy to help.
Best,
Amar
-
- Posts: 3
- Joined: Wed Nov 29, 2023 1:36 am
Re: Getting Logical Resolution
To determine the logical resolution of devices using WURFL capabilities, you can utilize the physical_screen_width and physical_screen_height properties instead of the density_class property. The physical_screen_width and physical_screen_height properties provide the physical dimensions of the device's screen in millimeters. By converting these measurements to inches and using them along with the resolution_width property, you can calculate the logical resolution. connections puzzle
-
- Posts: 3
- Joined: Wed Nov 29, 2023 1:36 am
Re: Getting Logical Resolution
To determine the logical resolution of devices using WURFL capabilities, you can utilize the physical_screen_width and physical_screen_height properties instead of the density_class property. The physical_screen_width and physical_screen_height properties provide the physical dimensions of the device's screen in millimeters. By converting these measurements to inches and using them along with the resolution_width property, you can calculate the logical resolution. connections puzzle
-
- Posts: 3
- Joined: Wed Nov 29, 2023 1:36 am
Re: Getting Logical Resolution
To determine the logical resolution of devices using WURFL capabilities, you can utilize the physical_screen_width and physical_screen_height properties instead of the density_class property. The physical_screen_width and physical_screen_height properties provide the physical dimensions of the device's screen in millimeters. By converting these measurements to inches and using them along with the resolution_width property, you can calculate the logical resolution. connections puzzle
Who is online
Users browsing this forum: No registered users and 1 guest