You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by no...@apache.org on 2020/01/12 14:46:32 UTC
[cordova-plugin-splashscreen] branch master updated: Update
readme.md by adding missing info (#239)
This is an automated email from the ASF dual-hosted git repository.
normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-splashscreen.git
The following commit(s) were added to refs/heads/master by this push:
new a7706fe Update readme.md by adding missing info (#239)
a7706fe is described below
commit a7706fef5853bf5fbc584fd6089baa515db21880
Author: Mosab A <47...@users.noreply.github.com>
AuthorDate: Sun Jan 12 16:46:24 2020 +0200
Update readme.md by adding missing info (#239)
* Update readme.md by adding missing info
* Update README.md
* Update README.md
* Update README.md
* Update text as standard
* Update README.md
* Update README.md
---
README.md | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index d377a76..dd5a20c 100644
--- a/README.md
+++ b/README.md
@@ -91,17 +91,19 @@ projectRoot
```xml
<platform name="android">
<!-- you can use any density that exists in the Android project -->
- <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/>
- <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi"/>
- <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>
- <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi"/>
- <splash src="res/screen/android/splash-land-xxhdpi.png" density="land-xxhdpi"/>
-
- <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/>
- <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/>
- <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>
- <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/>
- <splash src="res/screen/android/splash-port-xxhdpi.png" density="port-xxhdpi"/>
+ <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi" />
+ <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi" />
+ <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi" />
+ <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi" />
+ <splash src="res/screen/android/splash-land-xxhdpi.png" density="land-xxhdpi" />
+ <splash src="res/screen/android/splash-land-xxxhdpi.png" density="land-xxxhdpi" />
+
+ <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi" />
+ <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi" />
+ <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi" />
+ <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi" />
+ <splash src="res/screen/android/splash-port-xxhdpi.png" density="port-xxhdpi" />
+ <splash src="res/screen/android/splash-port-xxxhdpi.png" density="port-xxxhdpi" />
</platform>
<platform name="ios">
@@ -159,6 +161,8 @@ Apple is moving away from legacy launch images. There is no official support for
The preferred method of providing launch images is to use a launch storyboard. For native app developers, the ideal launch storyboard is an unpopulated version of the app's user interface at launch. For non-native app developers who don't wish to learn Interface Builder, however, this plugin simulates the legacy launch image method as much as is feasible.
+**Note:** Since iOS 11, for iPhone X devices and greater (with notch screen), you should switch to the new storyboard splash screens, taking into account to add `viewport-fit=cover` to the viewport meta tag in your `index.html` file to display the app correctly like so: `<meta name="viewport" content="user-scalable=no, initial-scale=1, width=device-width, viewport-fit=cover">` and make some modification to your app style by adding: `padding: env(safe-area-inset-top)` to your `index.css` [...]
+
#### Legacy launch images
If you choose to use legacy launch images, you will use the following syntax in `config.xml`:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org