Git Product home page Git Product logo

Comments (10)

selirion04 avatar selirion04 commented on July 18, 2024 9

That's not the status bar, is the safe area, if you want to get rid of it, add viewport-fit=cover to your viewport meta tag as a lot of people already commented.

But what should I do if I don't need cover, but just want to change color? In mobile safari this area has background-color of body tag. In cordova it's always white.

from cordova-plugin-statusbar.

Dwarfex avatar Dwarfex commented on July 18, 2024 2

Same Problem here.
However: This plugin partially fixed it for me: https://github.com/jcesarmobile/cordova-plugin-disable-ios11-statusbar

I would expect this to work with only this library.

Without Library:
bildschirmfoto 2018-11-07 um 13 17 07

from cordova-plugin-statusbar.

utiq avatar utiq commented on July 18, 2024 1

I fixed it doing this:
https://stackoverflow.com/a/46232813/751524

from cordova-plugin-statusbar.

utiq avatar utiq commented on July 18, 2024 1

@Dwarfex Exactly the steps that Stackoverflow response says.

from cordova-plugin-statusbar.

Kappyh avatar Kappyh commented on July 18, 2024

I have the same issue and I can't change the color of the status bar for any other color.
Just happens in iOS, in Android works.

from cordova-plugin-statusbar.

Dwarfex avatar Dwarfex commented on July 18, 2024

I also tried several "solutions" advised here: (https://stackoverflow.com/questions/46232812/cordova-app-not-displaying-correctly-on-iphone-x-simulator)

However "padding-top: env(safe-area-inset-top);" is not working for me as it does nothing to my layout.

I also noticed, that 'viewport-fit=cover' is not part of the displayed html anymore (altough part of the original html file) when inspected with Safari.
bildschirmfoto 2018-11-09 um 15 20 19

"cordova-ios": "^4.5.5",
"cordova-plugin-statusbar": "^2.4.2",
iOS 12 & 12.1
Cordova 8.0.0

from cordova-plugin-statusbar.

Dwarfex avatar Dwarfex commented on July 18, 2024

@utiq What exactly where the steps, that fixed it for you?

from cordova-plugin-statusbar.

diegodotta avatar diegodotta commented on July 18, 2024

Basically, you need to add splashscreen plugin to fix this issue @Dwarfex.
I was also having a weird issue using "window.cordova" before StatusBar, like window.cordova.StatusBar. This works well on Android, but not on iOS.

from cordova-plugin-statusbar.

Dwarfex avatar Dwarfex commented on July 18, 2024

@diegodotta I hoped so - but i already have added the plugin.

  • I use viewport-fit=cover
  • i use the splashscreen plugin with a "<splash src="res/screens/ios/Default@2x~universal~anyany.png" />" setting
    so my application looks like the second image on the stackoverflow link
    https://i.stack.imgur.com/VNFYb.png

But the variable "env(safe-area-inset-top)" seems to be "0" or not set as it has no effect on the layout. (even when used on simple divs)

from cordova-plugin-statusbar.

jcesarmobile avatar jcesarmobile commented on July 18, 2024

That's not the status bar, is the safe area, if you want to get rid of it, add viewport-fit=cover to your viewport meta tag as a lot of people already commented.

from cordova-plugin-statusbar.

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.