Open somq opened 4 years ago
@somq What is the status of the listed Cordova plugins? Do they work with Capacitor?
Hi @dwieeb
Fagundes one works, the other one is broken but not so useful anyway (only hides the sb). Also, the Ionic plugin does not work .
Hi @somq , it seems there is no @ionic-native/navigationbar-color for https://github.com/fagundes/cordova-plugin-navigationbar. I am new to capacitor/Cordova, could you show me how to use https://github.com/fagundes/cordova-plugin-navigationbar in a capacitor project?
Thank you very much!
Just declare an any TS var
npm i cordova-plugin-navigationbar-color --save
app.component.ts
declare var NavigationBar: any;
export class AppComponent {
constructor(private platform: Platform) {
init()
}
init() {
this.platform.ready().then(() => {
NavigationBar.backgroundColorByHexString('#1f1f1f');
})
}
}
All cordova plugins gets available in the global window
object, logs it at app bootstrap you'll see them.
wow, @somq thank you very much!
I am using React, but your code still works, since it's in window
.
there is also https://github.com/nikosdouvlis/capacitor-navigationbar and https://github.com/Jonarod/capacitor-navigation-bar
They are in early stages of development, they wont hide yet
is there any progress on this to get an actual capacitor plugin for navigation bar from core ionic team !?
It's super annoying that android apps can't leverage navigation and status bar section to allow apps to span top to bottom of the screen like we can do in iOS capacitor apps. Can someone please develop this for capacitor as it's making android look like a third world citizen compared to iOS apps on capacitor.
Hello @imhoffd I developed a Plugin to control the device navigation bar (https://github.com/hugotomazi/navigation-bar).
Currently the Plugin only supports Android devices because I don't have the tools to develop on the iOS platform. I would like the project to be added to the capacitor-community so that someone who is interested and also has the tools to develop on iOS can help me continue the project.
@imhoffd, Cool... It works, hoping for the IOS platform soon. Thanks
@hugotomazi i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)
Your link is broken
Get Outlook for iOShttps://aka.ms/o0ukef
From: Martin DONADIEU @.> Sent: Wednesday, November 17, 2021 9:03:31 PM To: capacitor-community/proposals @.> Cc: Tony Beretini @.>; Comment @.> Subject: Re: [capacitor-community/proposals] Navigation Bar (#51)
@hugotomazihttps://github.com/hugotomazi i added your plugin to awesome-capacitorhttps://github.com/riderx/awesome-capacitor if that is useful please take time to start the repo as well :)
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/capacitor-community/proposals/issues/51#issuecomment-972472514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APUUMIHVL63P4GT3HI4YFPLUMRUIHANCNFSM4PHQK6OA.
@antonioberetini fixed sorry it was in private
Plugin Request
Name: Navigation Bar Package:
@capacitor-community/navigation-bar
Platform(s)
Android, iOS
Existing Solutions
Description
Manipulate presence and color of the navigation bar