PHP Client Wurfl Cloud not returning device_os

Questions about the WURFL Cloud service.
refurls
Posts: 1
Joined: Wed Jul 10, 2013 4:18 am

PHP Client Wurfl Cloud not returning device_os

Postby refurls » Wed Jul 10, 2013 4:24 am

Hi!

We are using the PHP client to retrieve the device_os but we can't get it to work with any user agent.

Code: Select all

$config = new \WurflCloud_Client_Config();
$config->api_key = 'OUR KEY';

// Create the WURFL Cloud Client
$client = new \WurflCloud_Client_Client($config, new \WurflCloud_Cache_Null());
$client->detectDevice(array(
	"HTTP_USER_AGENT"	=> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (FlipboardProxy/1.1; +http://flipboard.com/browserproxy)",
));
echo $client->getDeviceCapability("device_os");
But the explore url does return with results:
http://dbapi.scientiamobile.com/explore ... wserproxy)

We have added the capability to our account and things like the is_bot capability is working.

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: PHP Client Wurfl Cloud not returning device_os

Postby kamermans » Thu Jul 11, 2013 9:46 pm

Hi,

The WURFL Cloud Service is in high-performance, which does not attempt to accurately detect desktop user agents. In the case of the user agent you posted, the best match is Firefox in high-accuracy mode (if you were using WURFL OnSite this is configurable), but will be detected as a generic web browser in the cloud service, for which the device_os is an empty string. If you try with a mobile device (tablet, phone, media player) or a Smart TV, you should see the result you are looking for.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 23 guests