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

Add possibility to use non-immersive fullscreen in all Android versions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Master
    • None
    • cordova-android
    • None

    Description

      Issue CB-8902 added a fullscreen immersive mode for Android version >=4.4 Kitkat.

      As I commented on the issue, unfortunately this change broke my >=KitKat app. Immersive mode is significantly different from the old behavior:

      1. Fullscreen in 4.1.1 is triggered later during boot than in 4.0.0, which cause my layout to slightly break as CSS is evaluated before fullscreen is ready.
      2. When activating the keyboard, to navigation bar comes back. It didn't in 4.0.0. When I close the keyboard, the navigation bar doesn't get hidden but fullscreen is lost.

      I propose that we introduce a new setting "fullscreen-immersive" to turn immersive off, but keep fullscreen on like this:

      <preference name="fullscreen" value="true" />
      <preference name="fullscreen-immersive" value="false" />

      The new setting would default to true, making this change non-breaking for everyone.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ttiurani Timo Tiuraniemi
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified