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

Fix splashscreen plugin filenames for Asset Catalog

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • ios@4.0.1

    Description

      cordova create test
      cd test
      cordova platform add ios@4
      cordova plugin add https://github.com/apache/cordova-plugin-splashscreen
      
      // add to config.xml:
          <platform name="ios">
              <allow-intent href="itms:*" />
              <allow-intent href="itms-apps:*" />
              <splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
              <splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/>
              <splash src="res/screen/ios/Default-Portrait~ipad.png" width="768" height="1024"/>
              <splash src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
              <splash src="res/screen/ios/Default-Landscape~ipad.png" width="1024" height="768"/>
              <splash src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
              <splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
              <splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/>
              <splash src="res/screen/ios/Default-736h.png" width="1242" height="2208"/>
              <splash src="res/screen/ios/Default-Landscape-736h.png" width="2208" height="1242"/>
              <preference name="AutoHideSplashScreen" value="false" />
              <preference name="FadeSplashScreen" value="true"/>
              <preference name="FadeSplashScreenDuration" value="1500"/>
          </platform>
          <preference name="SplashScreenDelay" value="2000" />
          <preference name="ShowSplashScreenSpinner" value="true"/>
          <preference name="Orientation" value="all"/>
      
      // add to index.js deviceready event:
      setTimeout(navigator.splashscreen.hide, 3000);
      
      cordova emulate ios --target=iPhone-6-Plus
      

      Splash screen will be shown briefly and after that the image will disappear leaving only the spinner.
      The following message will be logged out:
      WARNING: The splashscreen image named LaunchImage-736h was not found

      Attachments

        Issue Links

          Activity

            People

              daserge Sergey Shakhnazarov
              daserge Sergey Shakhnazarov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: