Posted by Eduard Grebe on June 29, 2009 at 3:55pm
Jump to:
| Project: | Browscap |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
I sent an email to Gary.
#2
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).
#3
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
#4
Thanks for the update, Greg!
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
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
#7
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
#8
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.
#9
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),
#10
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.
#11
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.
#12
Automatically closed -- issue fixed for 2 weeks with no activity.