GithubHelp home page GithubHelp logo

Comments (2)

mmocny avatar mmocny commented on May 27, 2024

Fixed this a few weeks ago. There is now the iOS statusbar plugin installed by default, and now new projects created with the cca tool will add a default cordova (StatusBarOverlaysWebView) to config.xml to push your app UI under the statusbar (just as in iOS6).

You can change this setting by editing the config.xml file and adjusting you app UI accordingly (and its advised to do so according to iOS7 style guide).

from mobile-chrome-apps.

mmocny avatar mmocny commented on May 27, 2024

For completeness I should also add that if editing the config.xml file does not appeal to you, you can modify the settings from JavaScript:

  StatusBar.overlaysWebView(false);
  StatusBar.backgroundColorByHexString('#ffffff');

In order to not see a flash of UI, I added these to my chrome.app.runtime.onLaunched handler in my background page, before issuing a chrome.app.window.create, so my background page looked like:

  chrome.app.runtime.onLaunched.addListener(function() {
    chrome.runtime.getPlatformInfo(function(info) {
      if (info.os === 'cordova-ios') {
        StatusBar.overlaysWebView(false);
        StatusBar.backgroundColorByHexString('#ffffff');
      }
      chrome.app.window.create('index.html', {
        id: 'MyApp'
      });
    }
  });

from mobile-chrome-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.