Chuyển đến nội dung chính

User agent for nokia

hen browser connects to a specific page, it sends in it's header it's user agent (the browser/mobile ID) which can be used to the page to display better results, etc. User Agent is defined by RFC 1945 and RFC 2068. This is a sample of the string:
//HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)

Contents

[hide]

User Agent header rules

S60 3rd Edition

OSS Browser 3.0 (Web browser) - HTML, XHTML-MP

In S60 3rd Edition this browser is not the default browser. It may be featured in the Active Standby menu bar or in the menu grid, but it will not be opened when URL is selected in another application (e.g. message).
  • Original UA string on S60 3.0 Web browser:
    • User-Agent: Mozilla/5.0 (SymbianOS/9.1; U; [en-us]) AppleWebKit/413 (KHTML, like Gecko) Safari/413
  • "Rogue" UA strings that might ship on some uncorrected 3.0 devices:
    • User-Agent: Mozilla/5.0 (SymbianOS/9.1; U; [en]; SymbianOS/91 Series60/3.0) AppleWebkit/413 (KHTML, like Gecko) Safari/413
    • User-Agent: Mozilla/5.0 (SymbianOS/9.1; U; en-us) AppleWebKit/413 (KHTML, like Gecko) Safari/413 es61
  • Final UA string for newer S60 3.0 builds:
    • User-Agent: Mozilla/5.0 (SymbianOS/9.1; U; [en]; Series60/3.0 NokiaE60/4.06.0) AppleWebKit/413 (KHTML, like Gecko) Safari/413

Services (WAP) Browser - XHTML-MP, WML

The original S60 WAP browser is still the default browser in S60 3rd Edition, but has been renamed “Services” (in S60 2nd Edition it is called “Web”).
The Services browser User-Agent string follows the old format on most devices, but unfortunately there may be some variation
  • NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
  • NokiaN73-2/2.0626 S60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
  • Mozilla/4.0 (compatible; MSIE 5.0; S60/3.0 NokiaN73-1/2.0(2.0617.0.0.7) Profile/MIDP-2.0 Configuration/CLDC-1.1)

S60 3rd Edition Feature Pack 1

In S60 3rd Edition Feature Pack 1 the Nokia Web browser (OSS 3.1) is the only browser included. All invocation of a browser will launch this browser.

OSS Browser 3.1

The User-Agent header for the browser is:
  • Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaXxx/1.0; Profile/MIDP-2.0 Configuration/CLDC-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413

S60 3rd Edition Feature Pack 2

S60 3rd Edition FP2 devices can either use OSS Browser 3.2 or Browser 7.1. Early 3.2 devices were shipped with OSS Browser 3.2, but some of them may be upgraded to Browser 7.1 via firmware update. 7.1 browser is pre-installed in the following 3.2 devices: Nokia 6710 Navigator, Nokia 6730 classic, Nokia N86, Nokia E52, Nokia E55, and Nokia E72. For Browser 7.1 user agent please see [Browser 7.1].

OSS Browser 3.2

  • OSS Browser 3.2 on E75
    • Mozilla/5.0 (SymbianOS/9.3; U; Series60/3.2 NokiaE75-1/110.48.125 Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

S60 5th Edition

S60 5th edition devices can either use Browser 7.0 or Browser 7.1.

Browser 7.0

Browser 7.0 is used on 5800 XpressMusic, 5530 XpressMusic and Nokia 5230.
  • 7.0 Browser (Nokia 5800 XpressMusic (v21.0.025))
    • Mozilla/5.0 (SymbianOS/9.4; U; Series60/5.0 Nokia5800d-1/21.0.025; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

Browser 7.1

7.1 Browser is used by N97, N97-mini and various 3.2.3 devices
  • Browser 7.1 (Nokia N97 (v12.0.024))
    • Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/12.0.024; Profile/MIDP-2.1 Configuration/CLDC-1.1; en-us) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.12344

List of User Agent headers

This is a list of browser user-agents for Nokia devices. For a complete list and other devices, check Zytrax.
N90: NokiaN90-1/3.0545.5.1 Series60/2.8 Profile/MIDP-2.0 Configuration/CLDC-1.1
3200: Nokia3200/1.0 (5.29) Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Link/6.3.1.13.0
N80: NokiaN80-3/1.0552.0.7Series60/3.0Profile/MIDP-2.0Configuration/CLDC-1.1
7610: Nokia7610/2.0 (5.0509.0) SymbianOS/7.0s Series60/2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0
6600: Nokia6600/1.0 (5.27.0) SymbianOS/7.0s Series60/2.0 Profile/MIDP-2.0 Configuration/CLDC-1
6680: Nokia6680/1.0 (4.04.07) SymbianOS/8.0 Series60/2.6 Profile/MIDP-2.0 Configuration/CLDC-1.1
6230: Nokia6230/2.0+(04.43)+Profile/MIDP-2.0+Configuration/CLDC-1.1+UP.Link/6.3.0.0.0
6630: Nokia6630/1.0 (2.3.129) SymbianOS/8.0 Series60/2.6 Profile/MIDP-2.0 Configuration/CLDC-1.1
7600: Nokia7600/2.0 (03.01) Profile/MIDP-1.0 Configuration/CLDC-1.0 (Google WAP Proxy/1.0)
N-GAGE: NokiaN-Gage/1.0 SymbianOS/6.1 Series60/1.2 Profile/MIDP-1.0 Configuration/CLDC-1.0
5140: Nokia5140/2.0 (3.10) Profile/MIDP-2.0 Configuration/CLDC-1.1
3519i: Nokia3510i/1.0 (04.44) Profile/MIDP-1.0 Configuration/CLDC-1.0
7250i: Nokia7250i/1.0 (3.22) Profile/MIDP-1.0 Configuration/CLDC-1.0
7250: Nokia7250/1.0 (3.14) Profile/MIDP-1.0 Configuration/CLDC-1.0
6800: Nokia6800/2.0 (4.17) Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Link/5.1.2.9
3650: Nokia3650/1.0 SymbianOS/6.1 Series60/1.2 Profile/MIDP-1.0 Configuration/CLDC-1.0
8310: Nokia8310/1.0 (05.11) UP.Link/6.5.0.0.06.5.0.0.06.5.0.0.06.5.0.0.0
N900: Mozilla/5.0 (X11; U; Linux armv7l; en-GB; rv:1.9.2b6pre) Gecko/20100318 Firefox/3.5 Maemo Browser 1.7.4.7 RX-51 N900


Default browsers and custom application

  • Opera Mini 5 Beta: Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.15650/756; U; en) Presto/2.2.0
  • Opera Mini 8: Opera/8.01 (J2ME/MIDP; Opera Mini/3.0.6306/1528; en; U; ssr)
  • Mozilla Compatible: Mozilla/4.1 (compatible; MSIE 5.0; Symbian OS; Nokia 6600;452) Opera 6.20 [en-US]


Other references

Browser comparison table Web Browser for S60 versions and device support
For a somewhat outdated listing of Nokia Devices Header information go to the Forum Nokia Browser Feature Table
Some more detailed information in these sticky threads [1] [2]
Official discussion thread for Browser 7.1 [3]
Also most of the Forum Nokia device specification pages contain a link to a UAProf page (which in return contains User Agent Header)

External Links: Zytrax
User agent headers and mobile handset capability detection

Nhận xét

Bài đăng phổ biến từ blog này

unicode with python

str = "Quan h\u1ec7 t\u00ecnh d\u1ee5c v\u00e0 t\u1eadp t\u00ecnh d\u1ee5c c\u00f3 th\u1ec3 g\u00e2y \u0111au tim \u1edf m\u1ed9t s\u1ed1 ng\u01b0\u1eddi n\u1ebfu h\u1ecd kh\u00f4ng th\u01b0\u1eddng xuy\u00ean th\u1ef1c hi\u1ec7n hai ho\u1ea1t \u0111\u1ed9ng \u0111\u00f3" hic vo duoc cai chuoi nay ma ko biet lam the nao ca?? print u'\u1ec7' duoc chu "ệ" print len(u'\u1ec7') --> 1 print len(unicode('\u1ec7')) --> 6 vay la convert chuoi thanh unicode the nay moi ky tu lai la 1 ky tu unicode (1Byte) thu cheat the nay xem sao nhi??  code = '\u1ec7' print eval("u'{0}'".format(code)) --> ệ  su dung regular expression ta se print duoc chuoi dau bai ve dang tieng viet bt print re.sub(r"(\\u[a-z0-9]{4})", lambda m: eval("u'{0}'".format(m.group(1))), str) --> Quan hệ tình dục và tập tình dục có thể gây đau tim ở một số người nếu họ không thường xuyên thực hiện hai hoạ...

Lưu ý về vendored_frameworks khi project pod sử dụng nhiều thư viện binary

vendored_frameworks Khi bạn cần đóng framework private source code thì có thể cung cấp cho các dev khác thông qua trực tiếp file .framework hoặc .xcframework hoặc qua pod,... Nếu bạn chỉ muốn đính kèm 1 dynamic framework thì bạn chỉ cần khai báo trong podspec như sau: s.vendored_frameworks = 'Frameworks/MyFramework.xcframework' Khi project thư viện của bạn sử dụng nhiều hơn 1 framework thì sử dụng cú pháp sau  s.vendored_frameworks = ['Frameworks/LV24hCore.xcframework', 'Frameworks/Alamofire.xcframework', 'Frameworks/AlamofireImage.xcframework', 'Frameworks/CryptoSwift.xcframework', 'Frameworks/ObjectMapper.xcframework'] Lưu ý là viết dấu [ trên 1 dòng nhé,  nếu Style xuống dòng trông cho sạch đẹp thì sẽ không ăn nhé. Ví dụ mình viết như này thì test không thấy ăn. s.vendored_frameworks = [ 'Frameworks/LV24hCore.xcframework', 'Frameworks/Alamofire.xcframework', 'Frameworks/AlamofireImage.xcframework', ...