Comments (11)
I'm having the same issue, took exact same steps.
from statusbarplugin.
I should have posted my solution. I was running my app via phonegap run ios
. I then tried cordova run ios
and the StatusBar plugin worked fine.
Would someone mind explaining why phonegap run ios
was not working?
from statusbarplugin.
I got it working. I changed from using com.phonegap.plugin.statusbar to org.apache.cordova.statusbar and it started to work. I won't claim to understand the guts of phonegap build well enough to makes sense of this.
from statusbarplugin.
I'm in the same position 😄
from statusbarplugin.
Well, I say I got it working, but I'm still struggling with it a little. I can see the JavaScript object StatusBar, but am still trying to get it to actually control the look of it. When my app starts I try to call StatusBar.overlaysWebView(false); but it does not seem to have an affect.
from statusbarplugin.
Your calls to StatusBar may be firing before the device is ready. You might need to include com.phonegap.plugin.device
and then add something like this to you JavaScript (this code worked for me).
function onDeviceReady() {
// Now safe to use the PhoneGap API
navigator.splashscreen.hide();
StatusBar.styleLightContent();
}
document.addEventListener("deviceready", onDeviceReady, false);
from statusbarplugin.
This seems to be same issue as #33
from statusbarplugin.
BTW, @andrewjmead & @jayrodkc did you get it running on Phonegap Build or locally? It was a bit unclear from your comments....
from statusbarplugin.
I was working locally and I was able to get it to work.
from statusbarplugin.
@andrewjmead OK, so it seems that the issue mentioned on #33 is limited to Build.
from statusbarplugin.
Cool, glad to help! Thanks for following up 😄!
from statusbarplugin.
Related Issues (20)
- Statusbar disappears after using inappbrowser HOT 5
- Problems with PhoneGap build HOT 7
- PhonegapBuild Statusbar color by hex
- Doesn't work in portrait (top home button) orientation on iPad mini HOT 2
- Can't get styleLightContent to work HOT 2
- status bar plugin webview overlay & color properties not workin on in-app browser
- statusbar is not being applied in inappbrowser
- scrollable webview?
- Phonegap Build Hydration Issue. HOT 1
- gremlins with double status bar in IOS7 HOT 2
- On iOS 8 the the height and width are not correct HOT 3
- 有问题
- Staus bar re-appears upon using image ui picker in IOS 8.1.3
- How can i use this plugin for phonegap CLI HOT 1
- Black line under statusbar when sharing Internet connection HOT 1
- StatusBar is undefined HOT 7
- Add status-tap event HOT 1
- Cannot set statusbar background color a second time
- Error building with com.phonegap.plugin.statusbar for Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statusbarplugin.