[ 
https://issues.apache.org/jira/browse/CB-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989943#comment-15989943
 ] 

Kerri Shotts commented on CB-12690:
-----------------------------------

Have you only been testing on the simulator? See 
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/index.html#quirks-and-known-issues,
 specifically point 2.

You can actually see this happening in the logs. If you redirect the output, 
you'll find a line like the following (cut out some paths):

{code}
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format 
human-readable-text --notices --warnings --export-dependency-info /Hugo\'s\ 
Shisha-Bar.build/assetcatalog_dependencies --output-partial-info-plist 
Hugo\'s_Shisha-Bar-alyhypaclxxejjhbbroekpsnejre/Build/Intermediates/Hugo\'s\ 
Shisha-Bar.build/Debug-iphonesimulator/Hugo\'s\ 
Shisha-Bar.build/assetcatalog_generated_info.plist --app-icon AppIcon 
--compress-pngs --enable-on-demand-resources YES --filter-for-device-model 
iPhone6,1 --filter-for-device-os-version 10.3 --sticker-pack-identifier-prefix 
.sticker-pack. --target-device iphone --target-device ipad 
--minimum-deployment-target 8.0 --platform iphonesimulator --product-type 
com.apple.product-type.application --compile 
HugosShishaBar/platforms/ios/build/emulator/Hugo\'s\ Shisha-Bar.app 
HugosShishaBar/platforms/ios/Hugo\'s\ Shisha-Bar/Images.xcassets
{code}

Notice the {{--filter-for-device-mode}} that is being used -- it's an iPhone 5s 
(iPhone6,1). Xcode then ignores any of the iPad-sized images because it thinks 
that you aren't going to be running on an iPad. This is obviously incorrect if 
you're targeting an iPad simulator, and is what generates the white screen.

The issue should _not_ occur when running on the physical device, however (and 
doesn't on my devices when using your app). The same point in those logs reads 
as follows (cut out a lot of paths):

{code}
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format 
human-readable-text --notices --warnings --export-dependency-info 
assetcatalog_dependencies --output-partial-info-plist 
assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs 
--enable-on-demand-resources YES --sticker-pack-identifier-prefix 
.sticker-pack. --target-device iphone --target-device ipad 
--minimum-deployment-target 8.0 --platform iphoneos --product-type 
com.apple.product-type.application --compile Hugo\'s\ Shisha-Bar.app 
Images.xcassets
{code}

Notice no {{--filter-for-device-model}}, which means all assets are getting 
included.

I haven't had the time to properly investigate _why_ the difference occurs 
(perhaps someone else will know off the top of their head), but it does mean 
that deploying to the sim from the CLI does **not** give you a true 
representation of what the splash screen will do. You either need to:

* {{cordova run ios --device}}
* or use the Xcode IDE to launch the device to the sim / device (which filters 
the correct assets).




> Splashscreen based upon device idiom not working on iPad Pro/ iPad Air (2)
> --------------------------------------------------------------------------
>
>                 Key: CB-12690
>                 URL: https://issues.apache.org/jira/browse/CB-12690
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin SplashScreen
>    Affects Versions: [email protected]
>            Reporter: Steve
>            Assignee: Kerri Shotts
>            Priority: Blocker
>
> The following code works like a charm:
>     <splash src="res/screen/ios/Default@2x~universal~anyany.png" />
>     <splash src="res/screen/ios/Default@2x~universal~comany.png" />
>     <splash src="res/screen/ios/Default@2x~universal~comcom.png" />
>     <splash src="res/screen/ios/Default@3x~universal~anyany.png" />
>     <splash src="res/screen/ios/Default@3x~universal~anycom.png" />
>     <splash src="res/screen/ios/Default@3x~universal~comany.png" />
> But if I specify the device idiom like the following:
>     <splash src="res/screen/ios/Default@2x~iphone~anyany.png" />
>     <splash src="res/screen/ios/Default@2x~iphone~comany.png" />
>     <splash src="res/screen/ios/Default@2x~iphone~comcom.png" />
>     <splash src="res/screen/ios/Default@3x~iphone~anyany.png" />
>     <splash src="res/screen/ios/Default@3x~iphone~anycom.png" />
>     <splash src="res/screen/ios/Default@3x~iphone~comany.png" />
>     <splash src="res/screen/ios/Default@2x~ipad~anyany.png" />
>     <splash src="res/screen/ios/Default@2x~ipad~comany.png" />
> I do not get any splashscreen on the iPad Pro and the iPad Air 2.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to