Page 1 of 1

Problem identifying HTC Magic

Posted: Mon Aug 29, 2011 4:07 am
by gounthar
Hi,

I am using wurfl java 1.3.1.1 with the wurfl file "wurfl.xml:db.scientiamobile.com - 2011-07-13 10:24:37; devices: 14862 root devices: 6990; families: 100".
I have problems with identifying different versions of the HTC Magic.
"Mozilla/5.0 (Linux; U; Android 1.5; en-ie; HTC Magic Build/CUPCAKE) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1" gives me magic_ver1_cupcake_it instead of magic_ver1_cupcake_ie.

"Mozilla/5.0 (Linux; U; Android 1.5; it-; HTC Magic Build/CUPCAKE) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1" gives me magic_ver1_cupcake_it, which is the good answer.

Can someone tell me if this is a normal behaviour, or if I missed something?

Thanks.

Re: Problem identifying HTC Magic

Posted: Mon Aug 29, 2011 6:08 am
by sm_support2
Hi, the WURFL APIs will basically remove the language substrings through a normalization process. The reason for this is obvious: the alternative would be to have hundreds of UAs in WURFL which mean basically nothing.

The problem here is that someone also contributed an 'irish' UA, which doesn't change anything except creating some confusion.

We are planning to address this in future versions of API and data by removing useless entries and by demanding that WURFL data is only used with one of the official APIs.

Thank you

Re: Problem identifying HTC Magic

Posted: Mon Aug 29, 2011 7:13 am
by gounthar
Hi,

thanks for this quick answer. I am looking forward to using this future version of the API.

Kind regards.