I was recently working on a project that involved WURFL device detection. I would say that your choice depends on what you are trying to do.

Once WURFL recognizes a device, you get access to a huge database of device properties. Not just the screen size and supported image types that you would need for image resizing, but everything from how the user can scroll around a web page to the video codecs supported. In theory you could write a full adaptable web site that tailors many different features to match the capabilities of the device in use.

apache2 mobile filter only scales images. You don't get access to anything else, so for example if a user visits your site with a small screen feature phone which does not support tables or CSS and does not have the connection speed or RAM to download a large and complex page then just changing the image size won't allow them to view your site.

For what I was doing, I needed the extra information that you get from WURFL, as I needed to tailor my site more.

One thing I did find with Mobile::WURFL, is that the device detection has no fuzzy string matching on the user agent string. I took a months worth of website logs, extracted all the unique user agent strings, and fed them into Mobile::WURFL. Only about half where matched. The rest where slightly different from something in the database, usually only a few characters different in something like a minor version number of the phone software. The Java and PHP APIs that WURFL project distributes uses Levenshtein based fuzzy matching, but Mobile::WURFL does not. I modified it to use Text::Levenshtein to do the fuzzy matching, but my boss would not allow me to send that patch back to the author of Mobile::WURFL.


In reply to Re: apache2 mobile::filter vs mobile::wurfl by chrestomanci
in thread apache2 mobile::filter vs mobile::wurfl by AlfaProject

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.