Page 1 of 1

is_app_webview throwing CapabilityNotDefinedException

Posted: Fri Jun 24, 2016 7:26 am
by sunnymattas
Hello,
I am new to Wurfl API. I am trying to differentiate requests on server side. I want to identify if requests are coming from webview inside a mobile app or from mobile browser. As mentioned here https://www.scientiamobile.com/wurflCapability I am using following code.

Code: Select all

final Device device = wurflEngine.getDeviceForRequest(httprequest)
device.getCapability("is_app_webview")
But this is throwing CapabilityNotDefinedException. If I try to use is_app capability then it always returns false. Can somebody tell me what I am doing wrong? I am using wurfl-1.5.1.1.jar. Thanks

Regards
Sunny

Re: is_app_webview throwing CapabilityNotDefinedException

Posted: Tue Jul 19, 2016 3:22 pm
by aaronp
Hi Sunny,

Thank you for letting us know. Are you able to provide us with some sample UAs that are displaying this behavior as well as a stack trace or any code samples showing how you are running your detection?

Also, if possible, I would highly recommend updating your API to version 1.7.1.0 as we have made many improvements since version 1.5.1.1

Thanks,

Aaron