How we can hide splash screen in ionic app?

别来无恙 提交于 2020-05-15 08:44:04

问题


There is anyway to hide or don't display splash screen in ionic app, and splash screen time in capacitor is fewer or in cordova is fewer, and How to reduce the time of splash screen in ionic app. Thanks (-:


回答1:


Here is a tweak for disabling the splash screen. In config.xml file:

<preference name="SplashScreenDelay" value="0" />

You can further change its behavior with the following settings in config.xml file:

<preference name="FadeSplashScreenDuration" value="100" />
    <preference name="SplashShowOnlyFirstTime" value="true" />
    <preference name="SplashScreen" value="screen" />

For more settings, please check the splash screen documentation: https://github.com/apache/cordova-plugin-splashscreen#configxml

To add a custom animated splash screen, follow this link: https://angularfirebase.com/lessons/generate-a-custom-spash-screen-and-icons-in-ionic/



来源:https://stackoverflow.com/questions/58038371/how-we-can-hide-splash-screen-in-ionic-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!