Git Product home page Git Product logo

Comments (9)

breautek avatar breautek commented on August 17, 2024 1

I'd say deprecate now, remove in next major.

from cordova-plugin-statusbar.

jcesarmobile avatar jcesarmobile commented on August 17, 2024 1

The thing is, latest merged PR will require a major bump, so deprecating it now and waiting for a next major could take a lot of time.

from cordova-plugin-statusbar.

jcesarmobile avatar jcesarmobile commented on August 17, 2024 1

there are four possible values at the moment:
default: sets the status bar content (text, hour, battery, icons, etc) color to black
lightcontent, blackopaque, blacktranslucent: set he status bar content (text, hour, battery, icons, etc) color to white.
Since they all do the same, and blackopaque/blacktranslucent correspond to old native values that were deprecated by Apple on iOS 7, we plan to remove them in a future release.
So if you have <preference name="StatusBarStyle" value="blacktranslucent" />, use <preference name="StatusBarStyle" value="lightcontent" /> as it does the same

from cordova-plugin-statusbar.

 avatar commented on August 17, 2024 1

I used this setting in config.xml

   <preference name="StatusBarBackgroundColor" value="#2C3A47" />
   <preference name="StatusBarStyle" value="lightcontent" />
   <preference name="StatusBarOverlaysWebView" value="false" />

Background color changed but text is still black. Do you know why it is not working?

from cordova-plugin-statusbar.

brodycj avatar brodycj commented on August 17, 2024

I think the best solution would be to make a minor release branch where we make a minor release with the deprecation (not sure if this would be in log, documentation, or somewhere else), then plan to remove these in the next major release.

In case nobody has this extra time, which is my anticipation, then I would favor removing these in the next major.

from cordova-plugin-statusbar.

breautek avatar breautek commented on August 17, 2024

If there is still a significant amount of time before the next major release then I think what @brodybits makes sense.

If the next major release is going out soon where it doesn't make sense to make a minor release, then I think we still just need to bite our lip and deprecate on that major, and remove on the following major. Generally speaking people don't like when things just disappears without a heads up.

And correct me if I'm wrong but I don't think this is a critical issue where Apple will start blocking apps for using a deprecated style.

from cordova-plugin-statusbar.

jcesarmobile avatar jcesarmobile commented on August 17, 2024

No, the deprecated styles are not even used, all the options use the UIStatusBarStyleLightContent now

from cordova-plugin-statusbar.

mosabab avatar mosabab commented on August 17, 2024

what about if some one use dark contents in the whole app or he set dark image in the background?

Should we use this preference in config.xml or i am wrong?
(Someone correct me please)

<preference name="StatusBarStyle" value="blacktranslucent" />

from cordova-plugin-statusbar.

mosabab avatar mosabab commented on August 17, 2024

there are four possible values at the moment:
default: sets the status bar content (text, hour, battery, icons, etc) color to black
lightcontent, blackopaque, blacktranslucent: set he status bar content (text, hour, battery, icons, etc) color to white.
Since they all do the same, and blackopaque/blacktranslucent correspond to old native values that were deprecated by Apple on iOS 7, we plan to remove them in a future release.
So if you have <preference name="StatusBarStyle" value="blacktranslucent" />, use <preference name="StatusBarStyle" value="lightcontent" /> as it does the same

Thanks for your explain

I think the blacktranslucent mean that if your app has dark content, and i don't know that it is same to lightconent value.

Regards

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.