0
今までPhonegap 3.7.0を使用していましたが、すべて正常に動作していました。これで、Phonegap 6.1.0にアップグレードする必要があり、これでiOSのスプラッシュ画面に問題があり、アプリケーション画面も正しく動作していません。以下は、ログイン画面の表示方法です: enter image description here 私たちはcordova cordova-plugin-splashscreenを使用しています。config.xmlには、そのプラグインのドキュメントに記載されているようなステートメントが追加されていますが、スプラッシュ画面は表示されません。以下はcordova - Phonegapでスプラッシュスクリーンとアプリ画面が動作しないbuild 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/Default[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" />