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

RobLoach’s picture

Title: Does not detect Android browser as a mobile client » Android G1 not a Mobile browser
Project: Mobile Theme » Browscap
Status: Active » Postponed (maintainer needs more info)

I sent an email to Gary.

zeropaper’s picture

Has 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).

greggles’s picture

Status: Postponed (maintainer needs more info) » Fixed

From the latest version - looks good to me.


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Google Android

[Android]
Parent=DefaultProperties
Browser="Android"
Platform=Android
Frames=true
Tables=true
Cookies=true
JavaScript=true
isMobileDevice=true

[Mozilla/5.0 (Linux; U; Android *; *) AppleWebKit/* (KHTML, like Gecko) Safari/*]
Parent=Android
Browser="Android"
isMobileDevice=true

[Mozilla/5.0 (Linux; U; Android *; *) AppleWebKit/* (KHTML, like Gecko) Version/3.0.* Mobile Safari/*]
Parent=Android
Browser="Android"
Version=3.0
MajorVer=3
MinorVer=0
isMobileDevice=true

[Mozilla/5.0 (Linux; U; Android *; *) AppleWebKit/* (KHTML, like Gecko) Version/3.1.* Mobile Safari/*]
Parent=Android
Version=3.0
MajorVer=3
MinorVer=0
RobLoach’s picture

Thanks for the update, Greg!

Status: Fixed » Closed (fixed)

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

codevoice’s picture

Status: Closed (fixed) » Active

Sorry 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

douglasmiller’s picture

Version: 6.x-1.x-dev » 5.x-1.1

I'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

kbasarab’s picture

Title: Android G1 not a Mobile browser » Android 2.1-2.2 not a Mobile browser
Version: 5.x-1.1 » 6.x-1.1

Seeing 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.

elud000’s picture

From 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),

josephcheek’s picture

Mozilla/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.

Devin Carlson’s picture

Status: Active » Fixed

If 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.

Status: Fixed » Closed (fixed)

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

waqarhassan41’s picture

Yes 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