Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9913

[iOS] SplashScreen AutoHideSplashScreen can't find file on some iPhone models

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • None
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sethwklein Seth W. Klein
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: