Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While the iPhone and other mobile phones get detected and shown the mobile theme, my Android-based phone (T-Mobile's G1 bought in Germany) does not.
Browscap does not list it as a known browser like it does "iPhone" or "IE 7.0" but rather reports the User agent string, i.e. "Mozilla/5.0 (Linux; U; Android 1.5; en-gb; T-Mobile G1 Build/CRB43) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1"
Comments
Comment #1
RobLoachI sent an email to Gary.
Comment #2
zeropaper CreditAttribution: zeropaper commentedHas I have the same issue, I would be happy to know if Gary answered you (and, yeah, by the way what was his answer ;) ).
If you look for a co-maintainer, I could possibly help (just to say).
Comment #3
gregglesFrom the latest version - looks good to me.
Comment #4
RobLoachThanks for the update, Greg!
Comment #6
codevoice CreditAttribution: codevoice commentedSorry to reopen an old ticket, but in the most recent (4534) version of Browsecap, I still get this string when browsing to my site using Android:
Mozilla/5.0 (Linux; U; Android 2.1-update1; en-us; SPH-M900 Build/ECLAIR) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17
This doesn't get detected as "Android", instead just returns the whole string.
Oh, I should note that this is:
Android 2.1 (as above)
Samsung Moment
Default Browser
Comment #7
douglasmiller CreditAttribution: douglasmiller commentedI'm also having issues with Android 2.1 using the emulators both with and without the Google APIs. The Android 1.5 and 1.6 versions are detected as mobile devices correctly.
This is the $_SERVER['HTTP_USER_AGENT'] for the 2.1 with the Google APIs:
[HTTP_USER_AGENT] => Mozilla/5.0 (Linux; U; Android 2.1; en-us; google_sdk Build/ERD79) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17
And this is the $_SERVER['HTTP_USER_AGENT'] for the 2.1 without the Google APIs:
[HTTP_USER_AGENT] => Mozilla/5.0 (Linux; U; Android 2.1; en-us; sdk Build/ERD79) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17
Comment #8
kbasarab CreditAttribution: kbasarab commentedSeeing this as well. Changing title to show this as more generic than just the G1.
Anything on Android 1.5 or 1.6 seems to work but when you get into Android 2.1 or 2.2 using the Emulator it is not detected as a mobile browser. In addition testing on the MyTouch 3G Slide it is not detected as a mobile browser either.
User agents c4doug posted about are the same I was seeing for the SDK. Don't know what the one was on the MyTouch I had a friend test.
Comment #9
elud000 CreditAttribution: elud000 commentedFrom Holland same issue:
HTC Desire not recognized as mobile.
Android OS, v2.1 (Eclair)
(http://www.gsmarena.com/htc_desire-3077.php)
Inspection of browscap stats file shows following strings:
('Mozilla/5.0 (Linux; U; Android 2.1-update1; nl-nl; Desire_A8181 Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17', 50, 0),
('Mozilla/5.0 (Linux; U; Android 2.1-update1; nl-nl; HTC Desire Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17', 16, 0),
Comment #10
josephcheekMozilla/5.0 (Linux; U; Android 1.5; fr-fr; sdk Build/CUPCAKE) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
is not shown as a mobile theme.
This is my android 1.5 emulator. This is keeping me from using this module in production.
Comment #11
Devin Carlson CreditAttribution: Devin Carlson commentedIf this is still an issue, I would suggest that someone send Gary another email.
The ability to manually change/override Browscap data does not currently exist but is being discussed at #570932: Administration to edit the Browscap data.
Comment #13
waqarhassan41 CreditAttribution: waqarhassan41 commentedYes android 2.1-2.2 is not mobile browser so plz check complete specifications of this device
Android OS, v2.1 (Eclair)
(http://www.yougeo.com/)
Inspection of browscap stats file shows following strings:
('Mozilla/5.0 (Linux; U; Android 2.1-update1; nl-nl; Desire_A8181 Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17', 50, 0),
GSM Mobile Phones Specifications & Prices