ekuwang / cordova-plugin-statusbar Goto Github PK
View Code? Open in Web Editor NEWEnable or disable Android 4.4's translucent statusbar.
License: MIT License
Enable or disable Android 4.4's translucent statusbar.
License: MIT License
Hi,
first of all, thanks for the plugin, I've been looking for this for a while ๐
I'm trying to use it in an Ionic project, but it doesn't work. The strange thing is, that when I run the application the status bar is black, but if I open the Chrome inspect to debug the application, at that moment the status bar gets transparent.
I am using it like so:
$ionicPlatform.ready(function() {
if(window.cordova) {
if (window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
screen.lockOrientation('portrait');
}
if (window.statusbarTransparent) {
console.log('****** ionic ready ******');
statusbarTransparent.enable();
}
});
The code is being run because if I run adb logcat
I can see the "ionic ready" message.
I have tried it using Android 5.0.2 in a real device, and using an emulator with 4.4.2, with the same result.
Thanks!
I have tried it and it works fine on different android phones but when I tested it on the Huawei P9 lite, it didn't work. Any ideas why ?
Hey there,
first thanks for all your efforts.
Now I have the problem that my statusbar disappears as soon I pull the android menu from top (or any android dialog pops up).
I guess I could call .show()
all the time but is there a general solution for that?
statusbarTransparent.enable() is not working with meteor.Please solve this issue
I can't install with npm.
So I do manualy but didn't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.