Git Product home page Git Product logo

statusbarplugin's People

Contributors

bobeast avatar vshabelnyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

statusbarplugin's Issues

Right portion of screen unresponsive to touch events

I have tried the Status Bar plugin in combination with Phonegap Build, PG 3.1 and iOS7, but it doesn't seem to work properly. The app uses full-screen landscape view.

I tried StatusBar.hide() in my deviceReady function, but the bar remained in view. And worse, the right-hand part of the screen became completely unresponsive to touch events. As if there was a transparent overlay on that part of the screen, possibly related to this bug: http://community.phonegap.com/nitobi/topics/inconsistent_ios_7_status_bar_build_problem. As described there, the overlay isn't transparent though, but it seems to cover exactly the same area that goes unresponsive in my case.

scrollable webview?

This is a very handy plugin but i experiencing some trouble when using it. It keeps adding a scrollable space of 20px at the bottom of the screen.

This is what i did:
$phonegap create StatusbarTest
$phonegap plugin add https://github.com/phonegap-build/StatusBarPlugin.git
$phonegap build ios

The result:
bildschirmfoto 2014-08-06 um 00 12 07

if i inspect the html with safari and checking for window.innerHeight it returns the height of 460px ((960/2)-20 i guess) which seems correct.

I am running phonegap -v 3.5.0-0.20.10

otherwise this plugin is the best solution for the ios7 statusbar problem.

Black line under statusbar when sharing Internet connection

Hi,

First of all, thanks for the work on this nice little plugin!

This bug occurs on iOS 8.3 (maybe earlier versions as well). We are running the latest version of the plugin (1.1.0) and are only using one preference from the plugin:

StatusBarOverlaysWebView =false

As seen from the attached screenshot, a black line occurs under the statusbar when sharing an Internet connection. The issue only occurs if you start to share an Internet connection while the app is NOT running in the background. When starting the app again the black line occurs. If you stop sharing an Internet connection, you have to kill the app and restart it for the black line to dissapear.

If you start to share an Internet connection while the app is already running in the background, everything seems to be working just fine with regards to the statusbar.

img_5925

Status bar turn black for a moment

When my app starts up the splashscreen is shown, then the statusbar turns black before turning into the color I'd like to use. Is this something I can prevent? I'm using these settings in Phonegap Build:

StatusBar.overlaysWebView(false);
StatusBar.backgroundColorByHexString("#666a6d");

StatusBar is undefined

I have the same issue as in #26 where StatusBar is undefined in the latest build when run on an iOS8 phone. This normally wouldn't be an issue if it wasn't for the javascript engine halting entirely. When this is encountered, any changes I do to for instance localStorage, is not available/reflected in the rest of the code running until the application is restarted. And to top it off, I'm not even calling StatusBar anywhere, so there's some initialization script that comes along that I assume does which fails because it's not available in the global scope?

So I tried with reverting to 1.0.1 as suggested in that thread, but then suddenly the width and height of the viewport was changed so that all the elements would have to get a custom set of code for iOS so that the width and heights were recalculated to much smaller percentages... at the moment the main body of the Single Page Application is set to 100% width and 100% height, but this makes elements near the right edge and/or bottom edge disappear outside of viewable area and are not reachable with scrolling.

I am using DevExpress framework and built through phonegap build directly from visual studio, so I don't have any build to share from. The ticket at devexpress is this; https://www.devexpress.com/Support/Center/Question/Details/T261533

Staus bar re-appears upon using image ui picker in IOS 8.1.3

I am using this addon to completely hide the status bar at boot which it does an excellent job of doing - But as soon as the ui image picker is accessed it re-appears. using hide() only adds to the problems as my content starts getting pushed 20px down the page upon 'each' image selection. Is there anyway you can add a fix for this so that the ui image picker never triggers the status bar to appear?

Thanks in advance.

Blank status bar appears after InAppBrowser closed

To reproduce:

  1. add plugins for both StatusBar and InAppBrowser
  2. call StatusBar.hide()
  3. call window.open(some_url, '_blank')
  4. press "Done"
  5. there is now a blank status bar - by blank I mean none of the actual status info is visible, just a blank bar

I'm testing on a physical iPhone 5 with iOS 7.

Viewport issue on iphone 4 inches

Viewport is wrong on iphone 4 inche since i've added this plugin. As you can see the window height return 656px instead to the correct 568px.

screen shot 2014-02-14 at 08 57 27

Problems with PhoneGap build

I am having trouble with the StatusBar plugin when my app is built using PhoneGap build. I have the following in my config.xml

  <gap:plugin name="com.phonegap.plugin.statusbar" version="1.1.0" />

    <feature name="StatusBar">
      <param name="ios-package" value="CDVStatusBar" onload="true" />
    </feature>

The status bar looks good when I build my app locally, but when I use PhoneGap build, I think it is displayed as black on black because I can see part of the battery level indicator if it turns red, but otherwise I see a black bar.

I am using PhoneGap v3.4.

Status bar color sits at bottom on iPad

Here's how to reproduce the issue:

  1. Rotate your iPad upside down (the home button on top), the iOS screen rotates to suit the orientation change
  2. Launch the app in this orientation mode and you will see the status bar background color placeholder is at the bottom below the web view, while the real status bar still sits at top without custom set background colour

Error building with com.phonegap.plugin.statusbar for Android

When I try 'cordova build android' I get the following error:

:processDebugResources/Users/blund/Documents/github/IdOra-app/platforms/android/res/xml/config.xml:40: AAPT: Error parsing XML: unbound prefix

====================
/Users/blund/Documents/github/IdOra-app/platforms/android/build/intermediates/res/merged/debug/xml/config.xml:40: error: Error parsing XML: unbound prefix

FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processDebugResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt
====================

The offending line in ..../config.xml:40 is:
<gap:plugin name="com.phonegap.plugin.statusbar" />

I'm not really sure what's wrong, let alone how to fix it. Any suggestions would be welcome.

statusbar is not being applied in inappbrowser

Hello

StatusBar plugin works great in the phonegap application. The problem is that when I start an inappbrowser from the application, the StatusBar plugin doesn't seem to do anything there.

Is there a solution for this?

If I build with phonegap build I have the following in config.xml:
<gap:plugin name="org.apache.cordova.core.inappbrowser" />
<gap:plugin name="com.phonegap.plugin.statusbar" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000" />

and if I compile natively on ios I use in my project via the console:
phonegap plugin add org.apache.cordova.inappbrowser
phonegap plugin add https://github.com/phonegap-build/StatusBarPlugin.git

thanks

Unable to access StatusBar in JavaScript

Let me preface this by saying I'm new to phonegap/cordova but not web development.


I added the following to my config.xml file:

...
<gap:plugin name="com.phonegap.plugin.statusbar"/>

<preference name="StatusBarOverlaysWebView" value="true" />

<feature name="StatusBar">
    <param name="ios-package" value="CDVStatusBar" onload="true" />
</feature>
...

I have also included phonegap.js in my project. It was loaded successfully and I have access to the cordova global variable.

As the README.md for this plugin implies I should be able to execute the following statement StatusBar.styleLightContent();. The issues is that StatusBar is not defined.

Am I missing something when it comes to using phonegap build plugins?

overlaysWebView(false) causes viewport issue on ipad

It seems that setting overlaysWebView to false causes the HTML of an application to be incorrectly sized (in iPad only). The HTML content extends beyond the viewport. Simply by changing to true and adjusting my html to account for this fixed my problem. Seems like this is a bug though - figured I would comment because this drove me crazy for quite a while.

Not working on iOS 7.1 64bit

I am using this plugin in my Cordova 3.3.1 project. When I try to run it on my iOS 7.1 64 bit iPhone I am getting an error when this function is called:

  • (void) _ready:(CDVInvokedUrlCommand*)command
    {
    // set the initial value
    [self.commandDelegate evalJs:[NSString stringWithFormat:@"StatusBar.isVisible = %@;", [UIApplication sharedApplication].statusBarHidden? @"false" : @"true" ]];
    }

It complains that the command parameter is nil. When I go back to the calling code:

  • (BOOL)execute:(CDVInvokedUrlCommand*)command
    {
    ...
    objc_msgSend(obj, normalSelector, command);
    ...
    }

the command here is not nil.

It works fine in the 64 bit emulator. It only seems to crash on a device.

Add animation option to hide/show method

It would be great to be able to animate the way status bar appear/disappear, using native status bar animation (UIStatusBarAnimationSlide/UIStatusBarAnimationFade).

Ex:

StatusBar.show("fade");
StatusBar.hide("slide");

Not working with Phonegap Build?

Is this not working with Phonegap build?

Currently trying to change my status bar colour, with the following code:

    <gap:plugin name="com.phonegap.plugin.statusbar" />
    <preference name="StatusBarBackgroundColor" value="#4e9fd5" />

Is there any specific order I should be putting these in or in certain places?

Thanks for the plugin! Any help is greatly appreciated,

Jonathan

StatusBar.isVisible issues

I am using PGB 3.3 with your latest plugin 1.10 and my ipad mini 7.0.6

when I use this method to show or hide the status bar and detect the statusbar is visible or not

StatusBar.show(); //the status bar is indeed show up
alert(StatusBar.isVisible);

it will alert "true" (good)

but...

StatusBar.hide(); //the status bar is indeed hidden
alert(StatusBar.isVisible);

it will still alert "true" (but I think it should be false in this situation)

status bar plugin webview overlay & color properties not workin on in-app browser

I am able to show & hide status bar through their given methods on web (inapp browser) but the overlay & statusbar color methods are not working. I tried using theses methods on load start & load stop but StatusBar.backgroundColorByName or by hex and StatusBar.overlaysWebView is not working on web. However these properties are working fine in native at the start of my app.

is there anything that i am missing here?

Statusbar disappears after using inappbrowser

The Statusbar disappears after opening a URL using in-app-browser.

My config.xml definitions are:

    <gap:plugin name="com.phonegap.plugin.statusbar" />
    <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
        <false />
    </gap:config-file>
    <gap:config-file platform="ios" parent="UIStatusBarHidden">
        <true />
    </gap:config-file>

I read somewhere, that if the UIViewControllerBasedStatusBarAppearance will be set to "YES" it might solve it.
However, in my case, I would like the App to start without a statusbar, and only make it appear later on after the App is loaded. So I need those settings above.

gremlins with double status bar in IOS7

On IOS 7 if I have the Personal Hotspot Notification showing then it is leaving an extra status bar gap to the application. This remains if I disable personal hotspot until I kill and restart. So I get 2 blue lines and then one blank black line. More worryingly my phone seems to crash 50% of the time on starting up the app with with hotspot enabled, so may be worth taking a good look at what happens if the status bar is double. I'm on Phonegap 3.3 and StatusBar 0.1.7.

StatusBar flicker

Using the "Hide status bar during application launch" option followed by StatusBar.hide() as soon as the deviceready event is fired, causes the statusbar to appear for a short period of time.

overlaysWebView default

Overlaying the WebView is the default behaviour without using this plugin. When using the plugin you have to forcibly call StatusBar.overlaysWebView(true); e.g.

StatusBar.styleLightContent();
StatusBar.overlaysWebView(true); // required

The 2nd line shouldn't be necessary in my opinion. Thoughts?

PhonegapBuild Statusbar color by hex

Hi,

I tried to give the statusbar a color by hex but it stays black, am i doing something wrong??!! (ofc i do, i always do ;) )

this is in my config file:

        <gap:plugin name="com.phonegap.plugin.statusbar" />
        <preference name="StatusBarOverlaysWebView" value="false" />
        <preference name="StatusBarBackgroundColorByHexString" value="#5ba239" />

Thanks in Advance

//Sem

Landscape mode

If we set StatusBar.hide() and launch the app landscape mode, a long about 200px wide bar runs along the right side of the screen. If we launch in portrait, no problem. Only on IOS7, of course.

Cannot set statusbar background color a second time

With my PhoneGap Build application settings the background color of the statusbar on Android works perfectly fine. Either from within the config or from within javascript.

Now, when attempting to set the background color a second time (or if previously specified in the config, the first time from javascript), nothing happens.

StatusBar.backgroundColorByHexString('#000000'); // works
StatusBar.backgroundColorByHexString('#ffffff'); // does not work

or

<preference name="StatusBarBackgroundColor" value="#000000" /> <!-- works -->
StatusBar.backgroundColorByHexString('#ffffff'); // does not work

StatusBarOverlaysWebView for PGB

Hi Ryan,

Thanks for doing such a great job man with this plugin (and PGB). A lot of us use it, just saying. My question is when will this...

<preference name="StatusBarOverlaysWebView" value="true" />

...be supported by PhoneGap Build?

Thanks again!

~Anthony

Fix for > 3.1 to Phonegap Build

Can you please make this compatible for Phonegap > 3.1 on Phonegap Build! Without that i can't build my app on phonegap build :(

Plugin doesn't seem to work

I have tried the following integration (Phonegap Build):

In my config.xml:

[gap:plugin name="com.phonegap.plugin.statusbar" /]
[preference name="StatusBarOverlaysWebView" value="true" /](tried false and true)
[preference name="StatusBarBackgroundColor" value="#111111" /]

I also tried:

function onDeviceReady() {
app.initialize();
StatusBar.overlaysWebView(true);
StatusBar.backgroundColorByHexString("#111111");
}

Everything results in the standard status bar color. I'm I doing something wrong?

Does this plugin work only with JavaScript and not config.xml for phonegap build?

Hi there, thanks very much for this plugin. We are using phonegap build with cordova 3.3. We added this to config.xml

<gap:plugin name="com.phonegap.plugin.statusbar" />

Next, if we add this to our HTML (which by the way isn't mentioned in the README):

<script type="text/javascript" src="statusbar.js"></script>

And if we add this to the deviceready callback:

StatusBar.overlaysWebView(false);
StatusBar.backgroundColorByHexString("#321e15");
StatusBar.styleLightContent();

Then things work. However, the README suggests that this can be done just through config.xml. Is that correct? We tried this:

<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#321e15" />

But it didn't work.

Can't get styleLightContent to work

I'm using PhoneGap Build. AppID 958859.

I've got this in my config.xml:

    <gap:plugin name="com.phonegap.plugin.statusbar" version="1.1.0" />

and I've got this in my main.js file:

function deviceReady() {
  StatusBar.backgroundColorByHexString("#660000");
  StatusBar.styleLightContent();
}
document.addEventListener('deviceready', deviceReady, false);

I get what appears to be a black status bar with black text and no access to the StatusBar object in the console using weinre. Specifically I get:

ReferenceError: Can't find variable: StatusBar

However, per another user's suggestion, if I switch to using version 1.0.1 and don't make any other changes I at least get the red background but still no white text.

    <gap:plugin name="com.phonegap.plugin.statusbar" version="1.0.1" />

I'm also able to access the StatusBar object from the console.

Doesn't work in portrait (top home button) orientation on iPad mini

That's funny! For a long time I didn't understand why it doesn't work. It seems I'm doing all right and have looked through a lot of issues. It should have worked.

By the end of the day I've noticed that my content is covered by something like view with height of status bar and with the same background at the bottom!

It was clear for me. All orientations except portrait (top home button) work fine. It can be reproduced only if you will launch the app in this orientation.

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.