Page 1 of 1

Detecting device OS

Posted: Thu Feb 12, 2015 8:35 am
by sangamesh_ms
Hi,

We have PHP code setup for calling WURFL API. We are able to get response for "form_factor" capability.

But when I am trying to use capabilities like "is_ios", "is_andriod" and "device_os" its giving us below error:
"Error: The requested capability (is_ios) is >invalid or you are not subscribed to it."

Please advise.

Regards,
Sangamesh

Re: Detecting device OS

Posted: Thu Feb 12, 2015 10:31 am
by Elliotfehr
Sangamesh,

I noticed that your account is only subscribed to the `form_factor` capability at the moment which is why these capabilities are not being returned by the WURFL cloud. If you would like to add them to be returned back by the cloud service, you will need to add them to your account on scientiamobile.com.

You can also find an example to display every capability that you are currently subscribed to in `examples/show_capabilities.php`.

Thank you,

Elliot