myTouch 3g slide not recongized as mobile device

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
jbart08
Posts: 11
Joined: Tue Sep 13, 2011 9:04 am

myTouch 3g slide not recongized as mobile device

Postby jbart08 » Mon Oct 10, 2011 10:03 am

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.

jbart08
Posts: 11
Joined: Tue Sep 13, 2011 9:04 am

Re: myTouch 3g slide not recongized as mobile device

Postby jbart08 » Mon Oct 10, 2011 10:51 am

PS, I'm on the latest wurfl file and java implementation.

Thanks,

-j

jbart08
Posts: 11
Joined: Tue Sep 13, 2011 9:04 am

Re: myTouch 3g slide not recongized as mobile device

Postby jbart08 » Wed Oct 12, 2011 7:08 am

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

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: myTouch 3g slide not recongized as mobile device

Postby kamermans » Wed Oct 12, 2011 11:32 am

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:

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
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?
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

jbart08
Posts: 11
Joined: Tue Sep 13, 2011 9:04 am

Re: myTouch 3g slide not recongized as mobile device

Postby jbart08 » Wed Oct 12, 2011 6:07 pm

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.");
}
}
}

ermanno
Posts: 11
Joined: Fri Jul 08, 2011 12:19 pm

Re: myTouch 3g slide not recognized as mobile device

Postby ermanno » Thu Oct 13, 2011 1:14 am

This seems to be a question about Java API.
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 24 guests