Page 1 of 1

wurfl 1.8 java api PlayStation not detected in accuracy mode

Posted: Wed Sep 07, 2016 5:10 am
by amarkey
Hi All,

I'm trying to update wurfl to 1.8 but some of my tests fail. I noticed a regression in detecting PlayStation consoles in java onsite 1.8.0.0 accuracy mode.
At least for the following UA:
Mozilla/5.0 (PlayStation 4 3.50) AppleWebKit/537.78 (KHTML, like Gecko)
Mozilla/5.0 (PlayStation 4 3.55) AppleWebKit/537.78 (KHTML, like Gecko)
engine always returns generic device whereas in 1.7.0 which I was using till now it returns a specific device.

Code: Select all

        GeneralWURFLEngine wurflEngine = new GeneralWURFLEngine("/Users/pi/Downloads/wurfl4.xml");
        wurflEngine.setEngineTarget(EngineTarget.accuracy);
//        String userAgent = "Mozilla/5.0 (PlayStation 4 3.50) AppleWebKit/537.78 (KHTML, like Gecko)";
        String userAgent = "Mozilla/5.0 (PlayStation 4 3.55) AppleWebKit/537.78 (KHTML, like Gecko)";
        Device device = wurflEngine.getDeviceForRequest(userAgent);

        java.lang.System.out.println(device.getId());
I've been using recent xml too:

Code: Select all

pi@mac:~/Downloads$ head -5 wurfl4.xml
<?xml version="1.0" encoding="UTF-8"?>
<wurfl>
  <version>
    <ver>data.scientiamobile.com - 2016-08-28 00:30:34</ver>
    <last_updated>2016-08-28 00:30:34 -0400</last_updated>
pi@mac:~/Downloads$
Is there anything I can do about it with 1.8.0.0? Or does it need xml/lib update?

Best,
Piotr Kowalski

Re: wurfl 1.8 java api PlayStation not detected in accuracy

Posted: Wed Sep 07, 2016 3:17 pm
by amark
Hi Piotr,

Thank you for bringing this to our attention. The latest release of our API reduces false-positives identified in prior releases. Unfortunately with this change in logic PlayStation 4 detection has been affected. We are currently looking into this issue but for now the UAs have been added into WURFL and will be included in the next weekly snapshot which will improve detection for PlayStation 4.

Thanks,

Amar