Reputation: 2384
Is there any good libraries/packages out there for detecting information about the device that visitis my page. For instance if a user goes to my page I would like to detect the platform, the version of the platform, screensize, manufacture and model..
I have tried with 51Degress.mobi but once I checked the value of Request.Browser.Platform the value was "Uknown"...and that was when I used my android-phone..which isnt a uncommon platform these days..so I sort of lost the trust of that.. or maybe I did something wrong? All i did was install it using nuGet..
Oh and yeah, I would like to do this server-side.. just to make that clear :)
Thanks in advance!
Upvotes: 1
Views: 388
Reputation: 925
I am currently working for 51Degrees.mobi.
The reason that that property is returning "Unknown" is that I assume you are using the free Lite data set as apposed to the Premium data? As the property you are trying to access is only available in our premium version. For a list of properties available in the Premium and Lite versions please see here.
Out of the data you mentioned you are interested in knowing, the Lite version can tell you whether it is mobile and the screen height and width in pixels. The other information is only available if you purchase the premium version.
Hope this helps :)
Upvotes: 1
Reputation: 5768
Use the http classes to get the request header and parse the user-agent value.
Upvotes: 0