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

The launch screen storyboard (splash screen) has a white safe area on the bottom ONLY on iPhone X, iOS 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • cordova-ios 4.5.0
    • None
    • cordova-ios
    • cordova-ios 4.5.0 or 4.5.1 and cordova-plugin-splashscreen

    Description

      The splash screen used by cordova-plugin-splashscreen uses the CDVLaunchScreen.storyboard file from cordova-ios. On the iPhone X emulator with iOS11, this shows a white "safe area inset" only on the bottom margin (not on the top).

      The splash screen should be immersive both on top and on the bottom, therefore the storyboard should be fixed. I use this simple replacement in a hook to patch cordova-ios after cordova prepare:

      NAME="$(find platforms/ios/ -name 'CDVLaunchScreen.storyboard')"
      sed -i '' 's_secondItem="xb3-aO-Qok" secondAttribute="top"_secondItem="Ze5-6b-2t3" secondAttribute="bottom"_g' "$NAME"
      

      Basically one constraint on the storyboard needs to be updated. It should be trivial to fix.

      Attachments

        1. screenshot-1.png
          38 kB
          Shashwat Tripathi

        Issue Links

          Activity

            People

              surajpindoria Suraj Pindoria
              Lazza Andrea Lazzarotto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified