Giter Site home page Giter Site logo

Comments (4)

jcesarmobile avatar jcesarmobile commented on August 17, 2024 1

@breautek didChangeStatusBarFrame is already used, but the size is wrong, it has a delay there too to get the correct size, and it's not called when it has another view on top (camera, inAppBrowser, or as in this issue, the input file picker)

from cordova-plugin-statusbar.

breautek avatar breautek commented on August 17, 2024

I wonder if there is another way to do this instead of simply adding a timer to wait x amount of time.

Generally speaking, I dislike waiting x amount of time as that doesn't necessary guarantee that what we are waiting for will actually be ready to read.

I'm not really an iOS expert, but is there a way to listen for statusbar/UI changes instead? Perhaps the application:didChangeStatusBarFrame delegate method will be a better approach to resize the webview.

https://stackoverflow.com/a/2944534/4685664

from cordova-plugin-statusbar.

digibusiness avatar digibusiness commented on August 17, 2024

We are not iOS developers either.
Probably that fix is not the most elegant solution, but we needed something that would solve the problem as soon as possible.
We implemented that code because the problem seemed the same as the one addressed in the statusBarDidChangeFrame method; the cordovaViewWillAppear event also appears to be invoked before the actual frame change (at least in the reported case).
If so, and if there is no other event available, appending the event to the dispatcher may be the only solution.
However, if another way to solve the problem could be found, such as using the events you suggested, it would certainly be better, but we do not have the ability to verify your suggestion, we would need knowledge of the iOS apps that unfortunately we don't have.

from cordova-plugin-statusbar.

jcesarmobile avatar jcesarmobile commented on August 17, 2024

it's already fixed, but not released yet
https://github.com/apache/cordova-plugin-statusbar/pull/157/files

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.