Mobile/User agents

= Official =

Web
User-agent will be that of the browser used for each platform.

Apps
Sample user-agents ...

Android
 * "WikipediaMobile/ " is prepended to the standard WebView's UA string
 * examples:
 * WikipediaMobile/1.3.4 Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; HTC One X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

iOS
 * Earlier versions(until v3.2.1) prepended "WikipediaMobile/ ", but it's missing from the latest release (bug 42484). Can still be distinguished from Safari mobile web hits because it doesn't actually mention 'Safari'.
 * examples:
 * Mozilla/5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B142

Windows 8/RT
 * Default web-based app's user-agent
 * examples:
 * Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; MSAppHost/1.0)

Firefox OS
 * Default web-based app's user-agent. Also currently uses format=jsonp -- may change to format=json in future.
 * examples:
 * Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

Blackberry PlayBook
 * Default WebWorks-based app's user-agent
 * examples:
 * Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML, like Gecko) Version/7.2.1.0 Safari/536.2+

= Un-Official Apps =

iOS
top 10 search results for Wikipedia and other high profile apps


 * Wikipanion
 * User-Agent: Wikipanion/1.7.8.3.CFNetwork/609.1.4.Darwin/13.0.0..
 * WikiTap
 * Proxy - 207.154.19.129
 * WikiBot
 * User-Agent:.Wikibot/2.0.2.CFNetwork/609.1.4.Darwin/13.0.0
 * iPediaWiki
 * User-Agent:.Mozilla/5.0.(iPod;.CPU.iPhone.OS.6_1_3.like.Mac.OS.X).AppleWebKit/536.26.(KHTML,.like.Gecko).Mobile/10B329
 * Onethisday
 * User-Agent:.OnThisDay/48.CFNework/609.1.4.Darwin/13.0.0
 * The Wiki game
 * User-Agent:.Mozilla/5.0.(iPod;.CPU.iPhone.OS.6_1_3.like.Mac.OS.X).AppleWebKit/536.26.(KHTML,.like.Gecko).Mobile/10B329
 * Wikihood
 * Wikihood iPad/1.3.3
 * Wapedia
 * Proxy - 82.147.11.31 - /en/Independence_Party_(Iceland)?applang=en&appsearchsite=en&appver=1.3.2&iapp_devtype=iPod%20touch&iapp_prefs=picturesize:on&iapp_res=6&sid=1493948423
 * WikiHunt
 * User-Agent:.WikiHunt/1.7.CFNetwork/609.1.4.Darwin/13.0.0.
 * Articles
 * User-Agent:.Articles/285.CFNetwork/609.1.4.Darwin/13.0.0.

Android

 * Wikidroid (Wikipedia Browser)
 * Wiki Encyclopedia 4 Wikipedia
 * ColorDict Dictionary Wikipedia
 * WikiMobile (Wikipedia Browser)
 * GWiki - Wikipedia for Android
 * Wapedia: wikis & encyclopedias
 * WikiMobile 2 Pro for Wikipedia
 * Wiki Mobile Encyclopedia

Wikistats logic for extracting Mobile apps
user@garage:~/wikistats/wikistats/squids$ grep -n -r "iOS:\|Android:" `find -name "*.pm" -o -name "*.pl"` ./perl/SquidCountArchiveProcessLogRecord.pm:534:   if($agent2 =~ s/^(.*) CFNetwork.*$/iOS: $1/io) { ./perl/SquidCountArchiveProcessLogRecord.pm:537:       $agent2 = "iOS: ".$ipad_data->{browser}; ./perl/SquidCountArchiveProcessLogRecord.pm:609: { ($version = $agent2) =~ s/^.*?(Dalvik\/\d+\.?\d*).*$/Android: $1/o ; } ./perl/SquidCountArchiveProcessLogRecord.pm:615:   { ($version = $agent2) =~ s/^.*((Wiktionary|Wikipedia) ?Mobile(\/| )(\d|\.)+).*$/Android: $1 (WMF)/o ; } ./perl/SquidCountArchiveProcessLogRecord.pm:617:   { ($version = $agent2) =~ s/^.*((Wiktionary|Wikipedia) ?Mobile(\/| )(\d|\.)+).*$/iOS: $1 (WMF)/o ; } ./perl/SquidCountArchiveProcessLogRecord.pm:856: elsif ($agent2 =~ /^iOS: /io)