This is an automated email from the ASF dual-hosted git repository. niklasmerz pushed a commit to branch ipad-contentmode in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git
commit b029e6d1ea8a5a08a19e4f71d36a4b6f488cfb7f Author: Niklas Merz <niklasm...@apache.org> AuthorDate: Thu Jun 4 20:39:28 2020 +0200 (ios) add documentation for preferredcontentmode --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4df9607..86f8630 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,16 @@ At the moment the only supported target in OSX is `_system`. `_blank` and `_self` targets are not yet implemented and are ignored silently. Pull requests and patches to get these to work are greatly appreciated. +### iOS Quirks + +Since iOS 13 iPads try to adapt their content mode / user agent for the optimal browsing experience. This may result in iPads having their user agent set to `Macintosh`. You can change this with the `PreferredContentMode` preference in "config.xml". + +```xml +<preference name="PreferredContentMode" value="mobile" /> +``` + +The example above forces the user agent to contain `iPad`. The other option is to use the value `desktop` to turn the user agent to `Macintosh`. + ### Browser Quirks - Plugin is implemented via iframe, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org