我们如何隐藏离子应用程序中的启动画面? [英] How we can hide splash screen in ionic app?

查看:100
本文介绍了我们如何隐藏离子应用程序中的启动画面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ionic应用程序中总有隐藏或不显示启动画面的情况,电容器中的启动画面时间更少或cordova中的启动画面时间更短,以及如何减少离子应用程序中的启动画面时间.谢谢(-:

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 (-:

推荐答案

以下是禁用启动屏幕的一项调整. 在config.xml文件中:

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

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

您可以使用config.xml文件中的以下设置进一步更改其行为:

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" />

有关更多设置,请查看启动画面文档: https://github.com/apache/cordova-plugin-splashscreen#configxml

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/

这篇关于我们如何隐藏离子应用程序中的启动画面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆