kerrishotts commented on a change in pull request #148: CB-13392(Android & iOS): Display app version on splashscreen URL: https://github.com/apache/cordova-plugin-splashscreen/pull/148#discussion_r161819016
########## File path: README.md ########## @@ -376,6 +376,23 @@ To disable the splashscreen add the following preference to `config.xml`: <preference name="SplashScreenDelay" value="0"/> ``` +#### Display app version (Android, iOS) + +To display your app version on splashscreen add the following preference to `config.xml`: +```xml +<preference name="ShowSplashScreenAppVersion" value="true" /> +``` + +To customise the version color, size and position add the following preference to `config.xml`: +```xml +<preference name="SplashScreenAppVersionColor" value="#FFFFFF" /> +<preference name="SplashScreenAppVersionSize" value="20" /> +<preference name="SplashScreenAppVersionGravity" value="right" /> +``` +**Note**: those values are defaults. +For the horizontal gravity, you may choose between `left`, `center` and `right`. +For the vertical gravity, you don't have choice, text is placed at the bottom of the splashscreen. Review comment: Note: not saying this needs to _be_ a preference -- just that if there's a good reason for it not being a preference that it should be called out -- otherwise someone is definitely going to ask for it as a feature. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org