myTouch 3g slide not recongized as mobile device
myTouch 3g slide not recongized as mobile device
Currently there is no is-mobile-device type attribute set for this hardware. Is there a different attribute that one should target when using the WURFL strictly for mobile device detection? My current approach was "if mobile device = true, redirect to mobile url", but it seems that more and more devices are popping up up that don't have this attribute set.
Re: myTouch 3g slide not recongized as mobile device
PS, I'm on the latest wurfl file and java implementation.
Thanks,
-j
Thanks,
-j
Re: myTouch 3g slide not recongized as mobile device
I can also include the LG Quantum, Samsung Omnia 7, and a few yet-to-be-named Android devices by my client to this list
Re: myTouch 3g slide not recongized as mobile device
Perhaps I am misunderstanding you, but it's not possible for the is_wireless_device option to not be set. If you are looking at the data in the WURFL.XML, the devices use inheritance to obtain most of their capabilities, for example, the T-Mobile myTouch 3G Slide (tmobile_mytouch_3g_slide_ver1) get's it's capabilities from the following devices, which are its ancestors:
The generic_mobile device is where is_wireless_device is set to true.
Can you tell me a little more about your situation and how you are calling the Java API?
Code: Select all
tmobile_mytouch_3g_slide_ver1
generic_android_ver2_1
generic_android_ver2
generic_android_ver1_6
generic_android_ver1_5
generic_android
generic_mobile
generic
Can you tell me a little more about your situation and how you are calling the Java API?
Thanks,
Steve Kamerman
ScientiaMobile
Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!
Steve Kamerman
ScientiaMobile
Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!
Re: myTouch 3g slide not recongized as mobile device
Sure,
Essentially my code is targetting the is_wireless_device property via the device.getCapability("is_wireless_device") method.
Below is a snippet example:
WURFLHolder wurflHolder = (WURFLHolder)filterConfig.getServletContext().getAttribute("net.sourceforge.wurfl.core.WURFLHolder");
WURFLManager wurfl = wurflHolder.getWURFLManager();
Device device = wurfl.getDeviceForRequest(request);
if (null != device) {
logger.debug("Device: " + device.getId());
if (null != device.getCapability("is_wireless_device")) {
Boolean isWirelessDevice = new Boolean(device.getCapability("is_wireless_device"));
if (isWirelessDevice) {
logger.debug("Wireless device detected.");
}
}
}
Essentially my code is targetting the is_wireless_device property via the device.getCapability("is_wireless_device") method.
Below is a snippet example:
WURFLHolder wurflHolder = (WURFLHolder)filterConfig.getServletContext().getAttribute("net.sourceforge.wurfl.core.WURFLHolder");
WURFLManager wurfl = wurflHolder.getWURFLManager();
Device device = wurfl.getDeviceForRequest(request);
if (null != device) {
logger.debug("Device: " + device.getId());
if (null != device.getCapability("is_wireless_device")) {
Boolean isWirelessDevice = new Boolean(device.getCapability("is_wireless_device"));
if (isWirelessDevice) {
logger.debug("Wireless device detected.");
}
}
}
Re: myTouch 3g slide not recognized as mobile device
This seems to be a question about Java API.
Could you post your User Agent string, so we can check it?
Thanks, Ermanno
Could you post your User Agent string, so we can check it?
Thanks, Ermanno
Who is online
Users browsing this forum: No registered users and 9 guests