如何从离子应用中去除闪屏 [英] How to remove splash screen from ionic application
问题描述
直接启动应用程序,无需启动和白屏。
我正在处理离子应用程序,我需要删除正在显示的启动画面在加载应用程序之前启动应用程序。
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
******************************************************
<我甚至使用过这个
<preference name="ShowSplashScreenSpinner" value="false" />
但这不适合我。
推荐答案
要删除/禁用启动画面,请将以下首选项添加到config.xml:
To remove/disable the splashscreen add the following preference to config.xml:
<preference name="SplashScreenDelay" value="0"/>
iOS Quirk:要在ios平台上禁用启动画面,您还应该添加< ; preference name =FadeSplashScreenDurationvalue =0/>
to config.xml。
iOS Quirk: to disable the splashscreen on ios platform you should also add <preference name="FadeSplashScreenDuration" value="0"/>
to config.xml.
FadeSplashScreen(boolean,默认为true) :设置为false以防止闪屏在显示状态更改时淡入淡出
< preference name =FadeSplashScreenvalue =false/>
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"/>
有关详细信息,请参阅: https ://github.com/apache/cordova-plugin-splashscreen
For more information refer: https://github.com/apache/cordova-plugin-splashscreen
这篇关于如何从离子应用中去除闪屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!