Closed (fixed)
Project:
Browscap
Version:
7.x-2.0
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2012 at 09:45 UTC
Updated:
29 Oct 2013 at 16:40 UTC
It did not detect the browser in mobile device.
Comments
Comment #1
devin carlson commentedCan you please provide more detail including:
Comment #2
sakthiprogrammer commentedI 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
Comment #3
devin carlson commentedYour 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.
Comment #4
hmalak commentedComment #5
hmalak commentedHello 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?
Comment #6
mondrakeSee #1868808: False/true not converted to 0/1 during browscap.ini import
Comment #7
hmalak commentedThank you mondrake.
Comment #8
armandozg commentedHello
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
Comment #9
gregglesPatch 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.