For earlier versions of 51degrees.mobi 1.2.0.5, use useragent to obtain the mobile phone hardware model and upgrade the latest wurfl hardware package.

Source: Internet
Author: User

For example, download the 1.2.0.5 library from codeplex of 51degrees.mobi.

Why download the version 1.2.0.5 is simple. Because the library of version 1 implements the wurfl interface and uses the wurfl hardware package, you can accurately obtain the hardware model. The Library of version 2 can no longer obtain the hardware model. Only the paid version can be used.

When we go back to the database version 1.2.0.5, The wurfl hardware package is old. We can download the latest package from the official wurfl website and replace it with it.

:

Download all 1.2.0.5 files:

Download the latest wrufl hardware package from wrufl. The website provides two formats: Zip and GZ, because the format corresponding to 51degrees.mobi is the GZ package, the latest package version is 2.3.3.

Replace the packages in the app_data folder of the original project!

 

If you replace the original package, directly copy the downloaded package to app_data, and then modify web. config.

Next we will compare the differences between the new package and the old package:

Useragent used: Mozilla/5.0 (blackberry; U; Blackberry 9900; en-US) applewebkit/534.11 + (khtml, like gecko) version/7.0.0.187 mobile safari/534.11 +

Old package:

After replacing the new package:

Obviously, the model is more accurate!

Therefore, when we use the earlier version of the 51degrees.mobi library, we can update the device library to achieve the latest hardware model.

Add 51degrees.mobi 1.2.0.5: XXX.

Wurfl.gz: CCC

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.