사이트 내 전체검색
PHP
모바일/태블릿 기기별 user-agent Mobile / Smart Phone
로빈아빠
https://cmd.kr/php/823 URL이 복사되었습니다.

본문

모바일/태블릿 기기별 user-agent Mobile / Smart Phone
by 보노 2011/04/01 13:47 artyst.egloos.com/2779071 덧글수 : 0
* 아이폰
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_6 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8E200 Safari/6533.18.5

* 아이팟 터치
Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; zh-cn) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5

* 아이패드
Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; ko-kr) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F5153d Safari/6533.18.5

* 모토로이
Mozilla/5.0 (Linux; U; Android 2.1-update1; ko-kr; XT720 Build/KyuHyuk ROM for XT720 1.4.0 Lite) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17

* 옵티머스 원
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; LG-KU3700 Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 넥서스 원
Mozilla/5.0 (Linux; U; Android 2.3; ko-kr; Nexus One Build/MIUI) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시S
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; SHW-M110S Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시S (일본)
Mozilla/5.0 (Linux; U; Android 2.2; ja-jp; SC-01C Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시U
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; SHW-M130L Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시A
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; SHW-M100S Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시탭 (SKT)
Mozilla/5.0 (Linux; U; Android 2.2; ko-kr; SHW-M180S Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시탭 (LG)
Mozilla/5.0 (Linux; U; Android 2.2; ko-kr; SHW-M180L Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시탭 (국내IP)
Mozilla/5.0 (Linux; U; Android 2.2; en-us; SCH-I800 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 갤럭시탭 (T-Mobile)
Mozilla/5.0 (Linux; U; Android 2.2; ko-kr; SGH-T849 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 시리우스 (SKT)
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; SKY IM-A600S Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 베가 (SKT)
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; SKY IM-A650S Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 베가 ( KT)
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; IM-A710K Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 베가 X (KT)
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; IM-A710K Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 디자이어
Mozilla/5.0 (Linux; U; Android 2.3.1; ko-kr; HTC Desire Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 소니에릭슨 X 시리즈
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; X10i Build/FreeX10-beta4_zdzihu) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

* 소니에릭슨 그외 시리즈
SonyEricssonW995/R1HA Browser/NetFront/3.4 Profile/MIDP-2.1 Configuration/CLDC-1.1 JavaPlatform/JP-8.4.5 Novarra-Vision/8.0
SonyEricssonK810i/R8BA Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
SonyEricssonK790i/R1JC Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1

* 블랙베리
BlackBerry9700/5.0.0.862 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/299

* 노키아
Mozilla/5.0 (SymbianOS/9.4; U; Series60/5.0 NokiaX6-00/10.7.018; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

*HTC HD2 (SKT)
Mozilla/5.0 (Linux; U; Android 2.2.1; ko-kr; HTC HD2 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1


이제 웹사이트는 다양한 화면 크기를 지닌 클라이언트를 배려해야만한다. 비단 그것이 안드로이드냐 아이폰이냐 정도의 문제가 아니라스마트폰 수준의 크기냐 타블렛 수준의 크기냐 혹은 심지어 스마트 TV수준의 크기냐에 따라서도 웹사이트는 고려를 하지 않을 수없게 되었다.
웹사이트는 결국 클라이언트의 HTTP 헤더를 보며 클라이언트에게 어울리는 화면 크기를 가늠해볼 수 밖에 없다.
이를테면 안드로이드 폰인 넥서스 원의 User-Agent헤더의 값은 다음과 같다.

Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; Nexus One Build/FRG83)AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

프로요 OS를 사용하는 WebKit기반의 브라우저로 웹사이트를 방문했다는 뜻인데, 이중에서 Mobile이라는 표시를 보며 웹사이트는 사이트의 컨텐츠를 Mobile에 맞게 가공하여 보내주게 된다.
그런데 같은 안드로이드라 할지라도 프로요 기반의 갤럭시탭같은 경우에는 이 Mobile 표시가 없다. 

Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; device Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Safari/533.1

즉, 다른 값은 다 동일하되 Mobile이라는 표시만을 삭제하여 웹사이트가 이 client가 비록 안드로이드 기반의 기기이지만 화면 크기는 일반 풀사이즈의 것을 원하고 있다는 것으로 간주할 수 있게 된다.

원문: http://android-developers.blogspot.com/2010/12/android-browser-user-agent-issues.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29&utm_content=Google+Reader


Mo’ better to also detect “mobile” user-agent

Wednesday, March 30, 2011 at 2:45 PM

Webmaster Level: Intermediate to Advanced

Here’s a trending User-Agent detection misstep we hope to help you prevent: While it seems completely reasonable to key off the string “android” in the User-Agent and then redirect users to your mobile version, there’s a small catch... Android tablets were just released! Similar to mobile, the User-Agent on Android tablets also contains “android,” yet tablet users usually prefer the full desktop version over the mobile equivalent. If your site matches “android” and then automatically redirects users, you may be forcing Android tablet users into a sub-optimal experience.

As a solution for mobile sites, our Android engineers recommend to specifically detect “mobile” in the User-Agent string as well as “android.” Let’s run through a few examples. 

With a User-Agent like this:
Mozilla/5.0 (Linux; U; Android 3.0; en-us; Xoom Build/HRI39) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
since there is no “mobile” string, serve this user the desktop version (or a version customized for Android large-screen touch devices). The User-Agent tells us they’re coming from a large-screen device, the XOOM tablet. 

On the other hand, this User-Agent:
Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; Nexus One Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
contains “mobile” and “android,” so serve the web surfer on this Nexus One the mobile experience!

You’ll notice that Android User-Agents have commonalities:


While you may still want to detect “android” in the User-Agent to implement Android-specific features, such as touch-screen optimizations, our main message is: Should your mobile site depends on UA sniffing, please detect the strings “mobile” and “android,” rather than just “android,” in the User-Agent. This helps properly serve both your mobile and tablet visitors.

For questions, please join our Android community in their developer forum.

댓글목록

등록된 댓글이 없습니다.

PHP
871 (3/18P)

Search

Copyright © Cmd 명령어 3.17.154.144