It did not detect the browser in mobile device.

Comments

devin carlson’s picture

Title: it didn't detect the browser in mobile » Mobile browser not detected
Component: User interface » Code
Status: Active » Postponed (maintainer needs more info)

Can you please provide more detail including:

  • What browser browscap did not detect?
  • What's the version number of your browscap data?
  • What type of hosting do you use and an your server successfully make an HTTP request?
  • Is the watchdog logging any errors?
sakthiprogrammer’s picture

I am new to drupal.
I am using browscap with mobile tools for detecting the mobile device for my drupal site.
When i was accessed the drupal site in mobile. It seems like a website view in desktop browser.
I am also using mobile Jquery theme for mobile and another theme for desktop.
I am using mobile tools to switching the theme.
I am using browscap development version 7.x-1.x-dev

devin carlson’s picture

Component: Code » Miscellaneous
Category: bug » support
Status: Postponed (maintainer needs more info) » Closed (fixed)

Your issue seems to be with the way that mobile tools is configured. You should review your configuration settings and file a support request with Mobile Tools if you require assistance.

I believe Mobile Tools is currently not being maintained and is still buggy. You should try using Browscap with the Switchtheme module, which works much better for Drupal 7.

hmalak’s picture

hmalak’s picture

Version: 7.x-1.x-dev » 7.x-2.0
Category: support » bug
Priority: Normal » Critical
Status: Closed (fixed) » Active

Hello Devin, I have the same issue and my current browscap data version is 5016. My browscap version is 7.x-2.0.
I am trying to use it in panels as a selection rule "is mobile" and visibility rule as well. When I view the site on my iPhone, I get the same panel variant as the desktop.
The desktop seems to pick up the variant with a selection rule "is not mobile" but unfortunately so is the iPhone!
I also noticed, on the browscap configuration screen, that the link for "user agent statistics," which is for example.com/admin/reports/browscap, does not actually show that specific report but it shows a list of the standard reports.
I cleared all cache several times, just in case, and still not getting the correct behavior.
Appreciate the help. Thank you.

P.S. Here is what the "browscap_get_browser()" function returns:

On the desktop:
Array ( [comment] => Chrome 23.0 [browser] => Chrome [version] => 23.0 [majorver] => 23 [minorver] => 0 [platform] => MacOSX [platform_version] => unknown [alpha] => false [beta] => false [win16] => false [win32] => false [win64] => false [frames] => true [iframes] => true [tables] => true [cookies] => true [backgroundsounds] => false [javascript] => true [vbscript] => false [javaapplets] => true [activexcontrols] => false [ismobiledevice] => false [issyndicationreader] => false [crawler] => false [cssversion] => 3 [aolversion] => 0 [parent] => Chrome 23.0 [useragent] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11 [browser_name_pattern] => Mozilla/5.0 (*Intel Mac OS X*) AppleWebKit/* (KHTML, like Gecko)*Chrome/23.*Safari/* )

On the iPhone:
Array ( [comment] => Mobile Safari 6.0 [browser] => Safari [version] => 6.0 [majorver] => 6 [minorver] => 0 [platform] => iOS [platform_version] => 6.0 [alpha] => false [beta] => false [win16] => false [win32] => false [win64] => false [frames] => true [iframes] => true [tables] => true [cookies] => true [backgroundsounds] => false [javascript] => true [vbscript] => false [javaapplets] => false [activexcontrols] => false [ismobiledevice] => true [issyndicationreader] => false [crawler] => false [cssversion] => 3 [aolversion] => 0 [parent] => Mobile Safari 6.0 [useragent] => Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A523 Safari/8536.25 [browser_name_pattern] => Mozilla/5.0 (iPhone*CPU*OS 6?0* like Mac OS X*)*AppleWebKit/*(*KHTML, like Gecko*)*Version/6.0*Mobile/*Safari/* )

Is this issue #1861832: browscap_ctools_browscap_access_ctools_access_check returns false on mobile-devices related?

mondrake’s picture

hmalak’s picture

Thank you mondrake.

armandozg’s picture

Hello

I'm facing the same problems than you before apply the patch, it seems it fix that issues, however I don't know how to apply that patch. Would you be so kind helping me on the steps to apply the patch?

I'll appreciate your help

greggles’s picture

Category: bug » support
Status: Active » Fixed

Patch is now applied to the latest dev branch. Please use that.

Please also be conscious of how you use the category/priority fields. I tend to ignore people who continually move what is a support request back to a "critical" "bug" so it can be counterproductive to do what you've done in this issue. See https://drupal.org/node/73178 for more tips on issue queue ettiquette.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.