capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

The world needs @capacitor/navigation-bar.

Open SvenBudak opened this issue 1 year ago • 8 comments

I find the ability to change the color of the navigation bar to be an absolute necessity in order to implement the overall design of one's app. Unfortunately, this is not currently possible. There is one community plugin that has made this possible: https://github.com/hugotomazi/navigation-bar However, this is no longer being developed and does not support Capacitor 5.

I would be very pleased if you could offer a plugin for the navigation bar. Most of us are front-end developers and are not really familiar with Java/Swift. Otherwise, I would have just programmed it myself and shared it with the community.

Best regards, Sven

SvenBudak avatar Feb 01 '24 01:02 SvenBudak

The world needs @capacitor/navigation-bar (x2)

VictorCubas avatar Apr 08 '25 11:04 VictorCubas

what a pain, yesterday i had to remove hugotomazi/navigation-bar because there were some incompatibilities. My users have to live with the fact that the statusbar no longer matches the color of the app 😂

SvenBudak avatar Apr 08 '25 11:04 SvenBudak

Hi,

Here's an updated and supported package for CAPACITOR NAVIGATION BAR

https://www.npmjs.com/package/@ethion/capacitor-navigation-bar

enjoy!

jeffreyaboh avatar Jun 19 '25 10:06 jeffreyaboh

Hi,

Here's an updated and supported package for CAPACITOR NAVIGATION BAR

https://www.npmjs.com/package/@ethion/capacitor-navigation-bar

enjoy!

Thanks for your effort! But I’m not installing any more third-party Capacitor plugins. I’ve just had way too many experiences where they stop being maintained or don’t get updated for newer versions. Changing the nav bar color is such a basic thing that almost every developer needs… I really think it should just be part of the @capacitor package.

SvenBudak avatar Jun 19 '25 15:06 SvenBudak

Hello @SvenBudak,

Did you have any news about it? What do you use to change/set the color of the navigation bar?

loic-parent avatar Oct 17 '25 09:10 loic-parent

What about https://github.com/Cap-go/capacitor-navigation-bar ?

Renny1 avatar Oct 18 '25 23:10 Renny1

Hello @SvenBudak,

Did you have any news about it? What do you use to change/set the color of the navigation bar?

Honestly, not at all. I ended up removing it and decided to live with the fact that the navigation bar doesn’t match the app’s color scheme perfectly for now. Eventually, I might write my own plugin for this... possibly with some help from GPT.

I’ve stopped waiting for certain Ionic features or bug fixes to be implemented and started building my own solutions instead. For example, I created a plugin that fixes the edge-to-edge behavior and correctly reports the keyboard height, as those issues have been around for quite some time.

In general, I no longer rely on third-party packages unless they’re low-level JS/TS libraries that are stable enough to keep working without frequent updates.

SvenBudak avatar Oct 18 '25 23:10 SvenBudak

@SvenBudak Thanks for your feedback. I agree this is a feature that Ionic/Capacitor should implement and add in their official packages.

@Renny1, I tried the package of Cap Go. It works better than others, especially for the color of the icon (dark or light) but the color of the navigation bar itself does not change on some devices (maybe due to a UI theme on device but not sure because some other apps set another color). Some little improvements need to be applied but it's ok for basic configuration 😉

Actually, I've tried several packages, but haven't found one that's really convincing. Some lack features, others aren't compatible with other packages, or aren't maintained... same observation as Sven.

Have a nice day guys, Loïc

loic-parent avatar Oct 20 '25 13:10 loic-parent