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

Settings in config.xml seem to have no effect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: cordova-ios 4.5.0
    • Fix Version/s: None
    • Environment:

      cli-7.1.0 with iOS 4.5.4

      cordova-plugin-statusbar 2.4.1

      Building with PhoneGap Build

       

      Description

      These settings seem to do nothing at all on iOS:

      <preference name="StatusBarOverlaysWebView" value="false" />
      <preference name="StatusBarBackgroundColor" value="#ffffff" />
      <preference name="StatusBarStyle" value="default" />

      (the status bar still overlays the app window and colors are not changed)

      I need to do this to get the intended effect:

      StatusBar.overlaysWebView(false);
      StatusBar.backgroundColorByHexString("#ffffff");
      StatusBar.styleDefault();

      This behavior is not obvious to me from reading the documentation.

      As there's a workaround with dynamic settings, it's not a showstopper, but the drawback is that the dynamic setting is not done until Cordova is ready, so there's some "jerkiness" to the UX.

      Cheers,

      Anders

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andersborg Anders Borg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: