I am creating a WAP application and when I am printing user agent using different mobile browsers like device's native browser, chrome, opera etc. all are giving me different user agent for same device.
I am getting entries only for those user agents which I have get from mobile's native browser.
How can I handle other user agents? how will I get other details from WURFL DB in that case?
Getting different user agent
Re: Getting different user agent
That is absolutely correct that different browsers on the same device should return a different User Agent String, and in most cases will still be detected by WURFL. Are you able to send me the User Agents that you are having difficulty detecting along with the capabilities that you are looking for?
Thank you,
Elliot
Thank you,
Elliot
Re: Getting different user agent
There are lots of devices/User Agents(all most for all devices) for which I am getting device details when I am using mobile's native browser and not getting any detail when using other browser like chrome.
e.g.
For Samsung S4
Native browser:-
Mozilla/5.0 (Linux; Android 4.2.2; en-us; SAMSUNG GT-I9500 Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Version/1.0 Chrome/18.0.1025.308 Mobile Safari/535.19
Result:- getting all the details
Chrome browser:-
GT-I9500 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.92 Mobile Safari/537.36
Result:- NO DETAIL
Opera browser:-
Opera/9.80 (Android 4.2.2; Linux; Opera Mobi/ADR-1309251116) Presto/2.11.355 Version/12.10
Result:- NO DETAIL
Even, when I am checking those user agents using your home page at bottom http://www.scientiamobile.com/
I am not getting details for opera browser user agent for S4.
I am checking all those user agents on http://localhost/wurfl/check_wurfl.php
Also I am using free latest version of WURFL.xml file.
e.g.
For Samsung S4
Native browser:-
Mozilla/5.0 (Linux; Android 4.2.2; en-us; SAMSUNG GT-I9500 Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Version/1.0 Chrome/18.0.1025.308 Mobile Safari/535.19
Result:- getting all the details
Chrome browser:-
GT-I9500 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.92 Mobile Safari/537.36
Result:- NO DETAIL
Opera browser:-
Opera/9.80 (Android 4.2.2; Linux; Opera Mobi/ADR-1309251116) Presto/2.11.355 Version/12.10
Result:- NO DETAIL
Even, when I am checking those user agents using your home page at bottom http://www.scientiamobile.com/
I am not getting details for opera browser user agent for S4.
I am checking all those user agents on http://localhost/wurfl/check_wurfl.php
Also I am using free latest version of WURFL.xml file.
Re: Getting different user agent
Hello,
Looking at the User Agent below, WURFL will not be able to detect the device as it is not a complete UA.
Elliot
Looking at the User Agent below, WURFL will not be able to detect the device as it is not a complete UA.
For the second User Agent (below), the WURFL API will look at other portions of the HTTP header and will correctly determine this device, but only when accessed from the physical device. However, using only the UA below, WURFL will be able to detect this as "Opera Mobi for Android".abhijeet1 wrote: Chrome browser:-
GT-I9500 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.92 Mobile Safari/537.36
Result:- NO DETAIL
Thank you,abhijeet1 wrote: Opera browser:-
Opera/9.80 (Android 4.2.2; Linux; Opera Mobi/ADR-1309251116) Presto/2.11.355 Version/12.10
Result:- NO DETAIL
Elliot
Who is online
Users browsing this forum: No registered users and 16 guests