1

では動作しません それから私は、これが間違っている何PhoneGapのスプラッシュ画面は、私が(index.htmlのパスを持つ)ルートをデフォルトにsplash.pngを追加IOS

<preference name="phonegap-version" value="cli-6.3.0" /> 
<preference name="SplashScreenDelay" value="5000" /> 
<plugin name="cordova-plugin-splashscreen" source="npm" /> 
<splash src="splash.png" /> 

をconfig.xmlにプラグインスプラッシュを追加しました?なぜそれは私のsplash.pngが表示されない?それは

答えて

1

スプラッシュ画面が権利を取得するために悪名高いトリッキーですPhoneGapのデフォルトのスプラッシュアイコンが表示されます。私は常に1つの "splash.png"イメージのみを使用するときに問題を抱えていたので、あなたの現在のデバイス用に1つのスプラッシュスクリーンをサイジングし、次に他のものを追加することを推奨します。次のサイズを利用して、フォルダ構造と画像の寸法がが正確にと一致することを確認します。それ以外の場合は、代わりにデフォルトのPhoneGapが表示されます。

注:「スプラッシュ/イオス」:フォルダのパスは以下である必要はありません。 "[email protected]~iphone.png"などのファイル名と同じです。実際のファイル名が一致していれば、名前は自由です。

<!-- iPhone 5/iPod Touch (5th Generation) --> 
<splash src="splash/ios/[email protected]~iphone.png" platform="ios" width="640" height="1136" /> 

<!-- iPhone 6 --> 
<splash src="splash/ios/Default-667h.png" platform="ios" width="750" height="1334" /> 
<splash src="splash/ios/Default-736h.png" platform="ios" width="1242" height="2208" /> 
<splash src="splash/ios/Default-Landscape-736h.png" platform="ios" width="2208" height="1242" /> 

<!-- iPad --> 
<splash src="splash/ios/Default-Portrait~ipad.png" platform="ios" width="768" height="1024" /> 
<splash src="splash/ios/Default-Landscape~ipad.png" platform="ios" width="1024" height="768" /> 

<!-- Retina iPad --> 
<splash src="splash/ios/[email protected]~ipad.png" platform="ios" width="1536" height="2048" /> 
<splash src="splash/ios/[email protected]~ipad.png" platform="ios" width="2048" height="1536" /> 
+0

iphone 7または他のデバイスについてのごcode.Whatでちょうどiphone 5 iphoneと6?特にアンドロイドがあり、多くの異なるsize..Iがために一つだけsplash.pngを使用したいましたすべてのデバイス – user1688401

+0

「iPhone 6」の寸法は7と同じです。こちらをご覧ください:http://cordova.apache.org/docs/en/6.x/reference/cordova-plugin-splashscreen/index.html Androidや他のすべての場合は、公式のdoc:http://docs.phonegap.com/phonegap-build/configuring/icons-and-splash/を参照してください。私の答えが明らかでない場合はお詫び:PhoneGap Buildのドキュメントでは1つのファイルだけを使用しているとは言えません。 – dotNetkow

関連する問題