0

Add the user agent content into the docs repo.

Original content: https://developer.chrome.com/multidevice/user-agent

Also, fixed some typos in opening_links.md.

TBR=pkl@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2778973002
Cr-Commit-Position: refs/heads/master@{#460051}
This commit is contained in:
jasonkliu
2017-03-28 02:30:11 -07:00
committed by Commit bot
parent 184961b20d
commit 00a6d2f940
2 changed files with 24 additions and 3 deletions

@ -1,4 +1,4 @@
# Opening links in Chrome for iOS</h1>
# Opening links in Chrome for iOS
The easiest way to have your iOS app open links in Chrome is to use the
[OpenInChromeController](https://github.com/GoogleChrome/OpenInChrome) class.
@ -13,8 +13,8 @@ the URL to open.
### Methods
* `isChromeInstalled`: returns YES if Chrome is installed</li>
* `openInChrome`: opens a given URL in Chrome</li>
* `isChromeInstalled`: returns YES if Chrome is installed
* `openInChrome`: opens a given URL in Chrome
For example, use the OpenInChromeController class as follows:

21
docs/ios/user_agent.md Normal file

@ -0,0 +1,21 @@
# User Agent in Chrome for iOS
The User Agent (UA) in Chrome for iOS is the same as the Mobile Safari
user agent, with `CriOS/<ChromeRevision>` instead of
`Version/<VersionNum>`.
Heres an example of the **Chrome** UA on iPhone:
<pre>
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X)
AppleWebKit/602.1.50 (KHTML, like Gecko) <b>CriOS/56.0.2924.75</b>
Mobile/14E5239e Safari/602.1
</pre>
For comparison, the **Safari** UA:
<pre>
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X)
AppleWebKit/603.1.23 (KHTML, like Gecko) Version/10.0
Mobile/14E5239e Safari/602.1
</pre>