Git Product home page Git Product logo

Comments (11)

jayrodkc avatar jayrodkc commented on June 1, 2024

I'm having the same issue, took exact same steps.

from statusbarplugin.

andrewjmead avatar andrewjmead commented on June 1, 2024

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.

jayrodkc avatar jayrodkc commented on June 1, 2024

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.

andrewjmead avatar andrewjmead commented on June 1, 2024

I'm in the same position 😄

from statusbarplugin.

jayrodkc avatar jayrodkc commented on June 1, 2024

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.

andrewjmead avatar andrewjmead commented on June 1, 2024

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.

miemo avatar miemo commented on June 1, 2024

This seems to be same issue as #33

from statusbarplugin.

miemo avatar miemo commented on June 1, 2024

BTW, @andrewjmead & @jayrodkc did you get it running on Phonegap Build or locally? It was a bit unclear from your comments....

from statusbarplugin.

andrewjmead avatar andrewjmead commented on June 1, 2024

I was working locally and I was able to get it to work.

from statusbarplugin.

miemo avatar miemo commented on June 1, 2024

@andrewjmead OK, so it seems that the issue mentioned on #33 is limited to Build.

from statusbarplugin.

andrewjmead avatar andrewjmead commented on June 1, 2024

Cool, glad to help! Thanks for following up 😄!

from statusbarplugin.

Related Issues (20)

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.