Giter Site home page Giter Site logo

Comments (5)

Heshyo avatar Heshyo commented on August 17, 2024

I guess I have the same issue. My app is also portrait only, except when playing a video where the player allows both portrait and landscape.

If I open a video in portrait, and stays in portrait, then no problem.

If I open a video in portrait, go to landscape, then close the video, then no problem.

The issue arises when opening the video in portrait, going to landscape, then portrait again, then closing the video. The app is now on top of the status bar, and simply calling window.StatusBar.overlaysWebView(false); does not help. As @sithwarrior mentioned, you have to change the overlay to true then false:

window.StatusBar.overlaysWebView(true);
window.StatusBar.overlaysWebView(false);

I call this in the webkitendfullscreen event.

from cordova-plugin-statusbar.

Heshyo avatar Heshyo commented on August 17, 2024

Another way to make the problem appear:

open a video in portrait, then close the player by swiping it down.

The app is now on top of the status bar. The issue with this one is that the webkitendfullscreen event is never called and I don't notice that I must call overlaysWebView.

from cordova-plugin-statusbar.

jcesarmobile avatar jcesarmobile commented on August 17, 2024

can you provide a sample app that reproduces the issue?

from cordova-plugin-statusbar.

Heshyo avatar Heshyo commented on August 17, 2024

@jcesarmobile @sithwarrior I'm away from a Mac for some time, but it'll try to provide a sample app in a week or two.

from cordova-plugin-statusbar.

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.