如何从离子应用程序中删除启动画面 [英] How to remove splash screen from ionic application
问题描述
直接启动应用程序,不会出现闪屏和白屏.
我正在开发一个离子应用程序,我需要在加载应用程序之前删除应用程序启动时显示的启动画面.
我不想要任何启动画面,需要删除整个启动画面
不知道该怎么做.让我展示一下我的应用程序的机器设置-
您的系统信息:科尔多瓦 CLI:6.2.0离子框架版本:2.0.0-beta.10Ionic CLI 版本:2.0.0-beta.32离子应用程序库版本:2.0.0-beta.18ios-deploy 版本:未安装ios-sim 版本:5.0.8操作系统:Mac OS X 优胜美地节点版本:v6.2.2Xcode 版本:Xcode 7.2 构建版本 7C68**********************************************************
我什至用过 这个
但这对我不起作用.
要删除/禁用启动画面,请将以下首选项添加到 config.xml:
iOS Quirk:要在 ios 平台上禁用启动画面,您还应该将 <preference name="FadeSplashScreenDuration" value="0"/>
添加到 config.xml.
FadeSplashScreen(布尔型,默认为true):设置为false,防止闪屏在其显示状态改变时淡入淡出<preference name="FadeSplashScreen" value="false"/>
更多信息请参考:https://github.com/apache/cordova-plugin-splashscreen
Launch application directly without splash and white screen.
I am working on an ionic application, I need to remove splash screen being display on application launch before loading the application.
I don't want any splash, Need to remove complete splash screen
Don't know how to do that.
Let me show my machine setup of the application-
Your system information:
Cordova CLI: 6.2.0
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X Yosemite
Node Version: v6.2.2
Xcode version: Xcode 7.2 Build version 7C68
******************************************************
I have even used this
<preference name="ShowSplashScreenSpinner" value="false" />
but this is not working for me.
To remove/disable the splashscreen add the following preference to config.xml:
<preference name="SplashScreenDelay" value="0"/>
iOS Quirk: to disable the splashscreen on ios platform you should also add <preference name="FadeSplashScreenDuration" value="0"/>
to config.xml.
FadeSplashScreen (boolean, defaults to true): Set to false to prevent the splash screen from fading in and out when its display state changes
<preference name="FadeSplashScreen" value="false"/>
For more information refer: https://github.com/apache/cordova-plugin-splashscreen
这篇关于如何从离子应用程序中删除启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!