0
我們到目前爲止一直使用Phonegap 3.7.0,所有工作都很完美。現在我們有升級到Phonegap 6.1.0的需求,因此我們在iOS上遇到啓動屏幕問題,應用程序屏幕也無法正常工作。以下是我們如何看到登錄屏幕: enter image description here 我們使用cordova cordova-plugin-splashscreen並在config.xml中添加了該插件文檔中提到的語句,但不知何故,啓動畫面不可見。cordova - Splashscreen和應用程序屏幕無法在Phonegap上運行構建cli-6.1.0
下面是我們在config.xml中添加的代碼:
<platform>
<gap:splash src="splash/ios/Default~iphone.png" width="320" height="480"/>
<gap:splash src="splash/ios/[email protected]~iphone.png" width="640" height="960"/>
<gap:splash src="splash/ios/Default-Portrait~ipad.png" width="768" height="1024"/>
<gap:splash src="splash/ios/[email protected]~ipad.png" width="1536" height="2048"/>
<gap:splash src="splash/ios/Default-Landscape~ipad.png" width="1024" height="768"/>
<gap:splash src="splash/ios/[email protected]~ipad.png" width="2048" height="1536"/>
<gap:splash src="splash/ios/[email protected]~iphone.png" width="640" height="1136"/>
<gap:splash src="splash/ios/Default-667h.png" width="750" height="1334"/>
<gap:splash src="splash/ios/Default-736h.png" width="1242" height="2208"/>
<gap:splash src="splash/ios/Default-Landscape-736h.png" width="2208" height="1242"/>
</platform>
<preference name="SplashScreenDelay" value="4000" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="FadeSplashScreen" value="false"/>
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashMaintainAspectRatio" value="true" />
<plugin name="cordova-plugin-splashscreen" source="npm" />