You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Seth W. Klein (JIRA)" <ji...@apache.org> on 2015/10/30 16:49:27 UTC

[jira] [Created] (CB-9913) [iOS] SplashScreen AutoHideSplashScreen can't find file on some iPhone models

Seth W. Klein created CB-9913:
---------------------------------

             Summary: [iOS] SplashScreen AutoHideSplashScreen can't find file on some iPhone models
                 Key: CB-9913
                 URL: https://issues.apache.org/jira/browse/CB-9913
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin SplashScreen
    Affects Versions: Master
         Environment: {code}
node -v
v0.10.40
npm ls -g --depth 0
/Users/sk/.nvm/v0.10.40/lib
├── cordova@5.3.4-dev -> /Users/sk/cache/cordova/cordova-cli
├── cordova-common@0.1.1-dev -> /Users/sk/cache/cordova/cordova-lib/cordova-common
├── cordova-lib@5.3.4-dev -> /Users/sk/cache/cordova/cordova-lib/cordova-lib
├── ios-sim@5.0.1
├── npm@2.14.6
└── plugman@1.0.3-dev -> /Users/sk/cache/cordova/cordova-plugman
cd ~/cache/cordova/cordova-cli
git log | head -n 1
commit b53810ee754bd4a44591388473355efda0aa8653
cd ../cordova-lib/
git log | head -n 1
commit b45bc1c80b239040b91da25e2f12e759fc52c31d
cd ../cordova-plugman/
git log | head -n 1
commit 2a4ff6e21de715ea8f6f6e5e024647ee1b557738
{code}
            Reporter: Seth W. Klein


{code}
cordova create cordova-splash-no-auto-bug com.example.SplashBug SplashBug
cd cordova-splash-no-auto-bug/
cordova plugin add https://github.com/apache/cordova-plugin-splashscreen.git#master
cordova platform add https://github.com/apache/cordova-ios.git#master
cordova emulate ios
# add to config.xml
# <preference name="AutoHideSplashScreen" value="false" />
cordova emulate ios --target iPhone-6
# observe that splash screen hides and app becomes visible.
# expected splash screen to remain hiding app due to AutoHideSplashScreen being false.
cordova emulate ios --target iPhone-5
# observe expected behavior
open platforms/ios/SplashBug.xcodeproj
# run in iPhone-6 in XCode and observe error in console:
2015-10-28 00:20:38.029 SplashBug[40245:3789224] WARNING: The splashscreen image named LaunchImage-667h was not found
# observe that XCode sees SplashBug/Resources/Images.xcassets/LaunchImage Retina HD 4.7, named Default-667h.png, and sized at 750 x 1334, matching the expected size

find . -name '*667h*'
./platforms/ios/build/emulator/SplashBug.app/LaunchImage-800-667h@2x.png
./platforms/ios/SplashBug/Images.xcassets/LaunchImage.launchimage/Default-667h.png

a similar but more complex situation is visible with iPhone 6s Plus

LaunchImage-800-Landscape-736h@3x.png
LaunchImage-800-Portrait-736h@3x.png

something that might work:
https://github.com/sethwklein/cordova-plugin-splashscreen/commit/d44868a77fc8bb6e3a9435d84bb3dd97f1f85ae0
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org