Hi!
I remember to post this question here because I know Gum is using WURFL, but if anyone can help...
I've just set up WURFL using the PHP API, however it seems that I cannot find a proper documentation on how to check if UA is a mobile phone or not...
I heard about 'is_wireless_device', but I'm still stuck on it...
I'm using it like this:
But the damn thing always return true, even in Opera desktop version!!
What can be wrong? I have the latest wurfl.xml
Or is there any other WURFL function to properly detect if it's a mobile phone or not?
EDIT: I've just test it with firefox, it return FALSE correctly. But what's up with Opera desktop version that return true??
Thanks in advance.
I remember to post this question here because I know Gum is using WURFL, but if anyone can help...
I've just set up WURFL using the PHP API, however it seems that I cannot find a proper documentation on how to check if UA is a mobile phone or not...
I heard about 'is_wireless_device', but I'm still stuck on it...
I'm using it like this:
PHP Code:
$device = $wurflManager->getDeviceForUserAgent($_SERVER['HTTP_USER_AGENT']);
echo $device->getCapability('is_wireless_device');
What can be wrong? I have the latest wurfl.xml
Or is there any other WURFL function to properly detect if it's a mobile phone or not?
EDIT: I've just test it with firefox, it return FALSE correctly. But what's up with Opera desktop version that return true??
Thanks in advance.
Comment