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());
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$
Best,
Piotr Kowalski