janpio 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_r163511948
########## File path: README.md ########## @@ -376,6 +376,36 @@ 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" /> +``` + +Now just configure your app version into the widget version attribute, like that : +```xml +<widget version="1.0" >...</widget> +``` + + +###### Prefix app version +To set a prefix version add the following preference to `config.xml`: +```xml +<preference name="SplashScreenAppVersionPrefix" value="v" /> +``` +In this case you'll have `v1.0` + + +###### Customize app version +To customise the version color, size and horizontal position add the following preference to `config.xml`: +```xml +<preference name="SplashScreenAppVersionColor" value="#FFFFFF" /> +<preference name="SplashScreenAppVersionSize" value="20" /> +<preference name="SplashScreenAppVersionGravity" value="left|center|right" /> Review comment: How does this work - is it all the way left and right or with a padding? Should probably be documented. ---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
