advertised_browser lookup error
Posted: Fri Nov 08, 2013 10:18 am
I'm using the cloud service to lookup the user agent
Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329
This is the user agent that comes from an in-app WebView which is different from the standard safari user agent for this device which is
Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25
When calling
AbstractDevice device = manager.getDeviceFromRequest(request, response, capabilities);
I then get the exception being thrown
java.lang.IllegalArgumentException: Something is wrong with capability 'advertised_browser': null
at com.scientiamobile.wurflcloud.CloudClient.detectDevice(CloudClient.java:382) ~[client-java-1.0-simple-simple.jar:na]
at com.scientiamobile.wurflcloud.CloudClientManager.getDeviceFromRequest(CloudClientManager.java:143) ~[client-java-1.0-simple-simple.jar:na]
I've checked advertised_browser is on my capability list for the account. I saw a similar exception yesterday with advertised_device_os. Is there a bug with these new virtual capabilities? If it can't find a match, shouldn't it use a default value rather than throwing an exception which results in no device capabilities returned at all.
Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329
This is the user agent that comes from an in-app WebView which is different from the standard safari user agent for this device which is
Mozilla/5.0 (iPod; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25
When calling
AbstractDevice device = manager.getDeviceFromRequest(request, response, capabilities);
I then get the exception being thrown
java.lang.IllegalArgumentException: Something is wrong with capability 'advertised_browser': null
at com.scientiamobile.wurflcloud.CloudClient.detectDevice(CloudClient.java:382) ~[client-java-1.0-simple-simple.jar:na]
at com.scientiamobile.wurflcloud.CloudClientManager.getDeviceFromRequest(CloudClientManager.java:143) ~[client-java-1.0-simple-simple.jar:na]
I've checked advertised_browser is on my capability list for the account. I saw a similar exception yesterday with advertised_device_os. Is there a bug with these new virtual capabilities? If it can't find a match, shouldn't it use a default value rather than throwing an exception which results in no device capabilities returned at all.