is_app_webview throwing CapabilityNotDefinedException

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
sunnymattas
Posts: 1
Joined: Fri Jun 24, 2016 7:12 am

is_app_webview throwing CapabilityNotDefinedException

Postby sunnymattas » Fri Jun 24, 2016 7:26 am

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

aaronp
Posts: 189
Joined: Wed Dec 09, 2015 12:39 pm

Re: is_app_webview throwing CapabilityNotDefinedException

Postby aaronp » Tue Jul 19, 2016 3:22 pm

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


Who is online

Users browsing this forum: No registered users and 1 guest