cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [02/15] docs commit: CB-8960 Add docs for AppendUserAgent, OverrideUserAgent
Date Tue, 12 May 2015 22:52:57 GMT
CB-8960 Add docs for AppendUserAgent, OverrideUserAgent

Add document about OverrideUserAgent and AppendUserAgent.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/2bfa030f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/2bfa030f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/2bfa030f

Branch: refs/heads/master
Commit: 2bfa030f6e262557a1a2f6c22ba6cdf60fdaeb7a
Parents: da177f8
Author: Bochun Bai <bbc@sinofool.net>
Authored: Wed May 6 23:04:49 2015 -0700
Committer: Bochun Bai <bbc@sinofool.net>
Committed: Thu May 7 13:57:32 2015 -0700

----------------------------------------------------------------------
 docs/en/edge/guide/platforms/android/config.md | 16 ++++++++++++++++
 docs/en/edge/guide/platforms/ios/config.md     | 14 ++++++++++++++
 2 files changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/2bfa030f/docs/en/edge/guide/platforms/android/config.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/android/config.md b/docs/en/edge/guide/platforms/android/config.md
index 142f306..77ea521 100644
--- a/docs/en/edge/guide/platforms/android/config.md
+++ b/docs/en/edge/guide/platforms/android/config.md
@@ -104,3 +104,19 @@ File](config_ref_index.md.html#The%20config.xml%20File) for information
on globa
   buttons always change the media volume. Note that when using Cordova's
   media plugin, the volume buttons will dynamically change to controlling
   the media volume when any Media objects are active.
+
+- `OverrideUserAgent` (string, not set by default):
+  If set, the value will replace the old UserAgent of webview.
+  It is helpful to identify the request from app/browser when requesting remote pages.
+  Use with caution, this may causes compitiable issue with web servers.
+  For most cases, use AppendUserAgent instead.
+
+        <preference name="OverrideUserAgent" value="Mozilla/5.0 My Browser" />
+
+- `AppendUserAgent` (string, not set by default):
+  If set, the value will append to the end of old UserAgent of webview.
+  When using with OverrideUserAgent, this value will be ignored.
+
+        <preference name="OverrideUserAgent" value="My Browser" />
+
+

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/2bfa030f/docs/en/edge/guide/platforms/ios/config.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/ios/config.md b/docs/en/edge/guide/platforms/ios/config.md
index 6b05869..3b3f7e1 100644
--- a/docs/en/edge/guide/platforms/ios/config.md
+++ b/docs/en/edge/guide/platforms/ios/config.md
@@ -116,4 +116,18 @@ File](config_ref_index.md.html#The%20config.xml%20File) for information
on globa
 
         <preference name="ErrorUrl" value="myErrorPage.html"/>
 
+- `OverrideUserAgent` (string, not set by default):
+  If set, the value will replace the old UserAgent of webview.
+  It is helpful to identify the request from app/browser when requesting remote pages.
+  Use with caution, this may causes compitiable issue with web servers.
+  For most cases, use AppendUserAgent instead.
+
+        <preference name="OverrideUserAgent" value="Mozilla/5.0 My Browser" />
+
+- `AppendUserAgent` (string, not set by default):
+  If set, the value will append to the end of old UserAgent of webview.
+  When using with OverrideUserAgent, this value will be ignored.
+
+        <preference name="OverrideUserAgent" value="My Browser" />
+
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message