LoginSignup
32
30

More than 5 years have passed since last update.

Androidブラウザの各種UAのサンプル

Posted at
  • 標準ブラウザ
    Mozilla/5.0 (Linux; U; Android 4.0.3; ja-jp; SC-02C Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

  • Firefox
    Mozilla/5.0 (Android; Mobile; rv:21.0) Gecko/21.0 Firefox/21.0

  • Google Chrome
    Mozilla/5.0 (Linux; Android 4.0.3; SC-02C Build/IML74K) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.58 Mobile Safari/537.31

基本的には、Chrome、Firefoxという文字列を含んでおらず、かつAndroidという文字列を含んでいる場合は標準ブラウザと見なしてよさそう。

検証用URL: http://jsfiddle.net/kyZRC/1/

UserAgent一覧: http://www.openspc2.org/userAgent/

32
30
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
32
30