IS_MOBILE and IS_WIRELESS_DEVICE

Questions about our enterprise "in the network" WURFL components
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
unicorn
Posts: 3
Joined: Mon Feb 17, 2014 11:11 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

IS_MOBILE and IS_WIRELESS_DEVICE

Postby unicorn » Mon Feb 17, 2014 12:42 pm

Hello,

We are testing WURFL for NGINX, all works well but we got an issue with understanding what does the capability IS_MOBILE mean. It's always showing us "default", on any device or PC. "The description tells, that This is just an ALIAS for is_wireless_device. There's no control capability associated to this virtual capability. "

What's the difference between is_mobile and is_wireless_device and also, what's the best way to recognize mobile phone (not tablet)?

Thanks
Dmitry

Elliotfehr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: IS_MOBILE and IS_WIRELESS_DEVICE

Postby Elliotfehr » Mon Feb 17, 2014 4:15 pm

Dmitry,

Currently the "is_mobile" virtual capability is an alias for "is_wireless_device", so at the moment there is not a difference between the two. To answer your question, looking for any device that returns true for "is_wireless" and false for "is_tablet" would be the best way to isolate only mobile phones.

Thank you,

Elliot

unicorn
Posts: 3
Joined: Mon Feb 17, 2014 11:11 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: IS_MOBILE and IS_WIRELESS_DEVICE

Postby unicorn » Tue Feb 18, 2014 6:53 am

Elliott, thanks for answer.
But what does the reply "default" in "is_mobile" means?

Elliotfehr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: IS_MOBILE and IS_WIRELESS_DEVICE

Postby Elliotfehr » Tue Feb 18, 2014 11:38 am

Dmitry,

This is a small bug with your version of the API as it should return "true" or "false". This has been addressed and fixed with API 1.5.1, which will be released shortly.

Thank you,

Elliot

Elliotfehr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: IS_MOBILE and IS_WIRELESS_DEVICE

Postby Elliotfehr » Tue Feb 18, 2014 12:48 pm

Dmitry,

We will be sending you a release candidate for 1.5.1 shortly. Feel free to let us know if the issue persists or if you have any issues upgrading to the new version.

Thank you,

Elliot


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 3 guests