I am using java api 1.6 version and wurfl.xml 1.6 beta version .
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Firefox/38.0
For this useragent, we are not able to find device_os and browser details.
make:generic web browser.
Please help us .
Unable to detect desktop browsers
Re: Unable to detect desktop browsers
Hello,
It seems that you may be running the API under high performance mode which will not attempt to match desktop devices. When running the API under accuracy mode, you should see:
device id: firefox_38_0
device_os: Desktop
mobile_browser: Firefox Desktop
advertised_device_os: Windows
advertised_browser: Firefox
Thank you,
Elliot
It seems that you may be running the API under high performance mode which will not attempt to match desktop devices. When running the API under accuracy mode, you should see:
device id: firefox_38_0
device_os: Desktop
mobile_browser: Firefox Desktop
advertised_device_os: Windows
advertised_browser: Firefox
Thank you,
Elliot
Re: Unable to detect desktop browsers
Hi Elliot, What do you mean by high performance mode and accuracy mode.
When I am running in my local, It should return device_os and browser but not.
Let me know, how do I identify high performance & accuracy modes.
Thanks
Kolli
When I am running in my local, It should return device_os and browser but not.
Let me know, how do I identify high performance & accuracy modes.
Thanks
Kolli
Re: Unable to detect desktop browsers
The WURFL API has two performance modes that can be set depending on use case. In high performance mode, the API will not attempt to match desktop devices, while in high accuracy mode, the API will attempt to match all devices.
The documentation for the Java API can be found here. Below is a small code sample that demonstrates how this can be set:
The documentation for the Java API can be found here. Below is a small code sample that demonstrates how this can be set:
Code: Select all
import net.sourceforge.wurfl.core.Device;
import net.sourceforge.wurfl.core.EngineTarget;
import net.sourceforge.wurfl.core.GeneralWURFLEngine;
public class Wurfl {
public static void main(String[] args) {
GeneralWURFLEngine wurfl = new GeneralWURFLEngine("wurfl.xml");
wurfl.setEngineTarget(EngineTarget.accuracy);
String user_agent = "Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Firefox/38.0";
Device device = wurfl.getDeviceForRequest(user_agent);
System.out.println("Is Tablet: " + device.getCapability('is_tablet'));
System.out.println("Can Assign Phone Number: " + device.getCapability('can_assign_phone_number'));
}
}
Re: Unable to detect desktop browsers
ok hi everyone am new.
now I stumbled on the scientiamobile community support forum while searching for help with my device.
please I need to know where I can get drivers for the mpman ph350 phone, the phone wont boot its stuck in a boot loop and I need help please.
now I stumbled on the scientiamobile community support forum while searching for help with my device.
please I need to know where I can get drivers for the mpman ph350 phone, the phone wont boot its stuck in a boot loop and I need help please.
Re: Unable to detect desktop browsers
Thanks for clarifying.
Till now , I have not used setEngineTarget() method in my code, I assume this will not affect any existing ?
Till now , I have not used setEngineTarget() method in my code, I assume this will not affect any existing ?
Re: Unable to detect desktop browsers
Kolli,
This should not affect any of your existing code, however it may affect your performance depending on the type of traffic you experience since high accuracy mode will attempt to match both mobile and desktop devices.
Thank you,
Elliot
This should not affect any of your existing code, however it may affect your performance depending on the type of traffic you experience since high accuracy mode will attempt to match both mobile and desktop devices.
Thank you,
Elliot
Who is online
Users browsing this forum: No registered users and 22 guests