From the below you can see that most of the capabilities are not available.
I'm using the demo app. The change I've made is to use the wurfl.xml file instead of wurfl.zip. I changed the wurfl_config_standard.php file to have:
Code: Select all
$wurflConfig->wurflFile($resourcesDir.'/wurfl.xml');
I added a debug statement to show the resource directory.
Code: Select all
Resource dir /Users/chrisloftus/Sites/code/with-wurfl/wurfl-php-1.6.4.2/examples/demo/inc/../../resources
WURFL XML INFO
VERSION: for API 1.6.4, db.scientiamobile.com - 2015-12-03 14:33:12
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
ID: generic_web_browser
Brand Name:
Fatal error: Uncaught InvalidArgumentException: no capability named [brand_name] is present in wurfl. in /Users/chrisloftus/Sites/code/with-wurfl/wurfl-php-1.6.4.2/WURFL/CustomDevice.php:130 Stack trace: #0 /Users/chrisloftus/Sites/code/with-wurfl/wurfl-php-1.6.4.2/examples/demo/index.php(29): WURFL_CustomDevice->getCapability('brand_name') #1 {main} thrown in /Users/chrisloftus/Sites/code/with-wurfl/wurfl-php-1.6.4.2/WURFL/CustomDevice.php on line 130
Thanks