我正在使用phonegap-build,上周我开始陆续看到2个不同的闪屏?
这是我的config.xml中与此特定问题相关的一些代码:
<gap:splash src="splash.png" />
<gap:splash src="Default.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="Default@2x.png" gap:platform="ios" width="640" height="960" />
<!-- iPhone 5 / iPod Touch (5th Generation) -->
<gap:splash src="Default-568h@2x.png" gap:platform="ios" width="640" height="1136" />
<!-- iPhone 6 -->
<gap:splash src="Default-667h@2x.png" gap:platform="ios" width="750" height="1334" />
<gap:splash src="Default-Landscape-736h@3x.png" gap:platform="ios" width="2208" height="1242" />
<!-- iPad -->
<gap:splash src="Default-Landscape.png" gap:platform="ios" width="1024" height="768" />
<!-- Retina iPad -->
<gap:splash src="Default-Landscape@2x.png" gap:platform="ios" width="2048" height="1536" />
我使用的是这个插件:
<gap:plugin name="cordova-plugin-splashscreen" source="npm" version="2.1.0" />
在iphone 5上测试,这两个闪屏的原因是一个接一个地出现?
更新: 如果我删除了启动画面插件,我会看到启动画面1秒,然后是白色屏幕,我看到了我的应用程序。
我希望在应用准备就绪(设备就绪)之前看到初始启动画面