GithubHelp home page GithubHelp logo

Comments (9)

eradin avatar eradin commented on June 22, 2024 1

I built with ios 6.1 and InAppBrowser Plugin 4.0. The status bar background is correct (matches my app) but the foreground (text) is black where my app text is white. Since the status bar is created by the plugin, perhaps a statusbar color option would be helpful?

My call is:

options = 'clearcache=yes,clearsessioncache=yes,location=no,toolbar=no,hardwareback=no,zoom=no'
ref = cordova.InAppBrowser.open(url, '_blank', options)

from cordova-plugin-inappbrowser.

adammeyer avatar adammeyer commented on June 22, 2024 1

The iOS status bar isn't being covered by the IAB, but yet the IAB is changing the status bar text color. Is there anyway to turn this off?

from cordova-plugin-inappbrowser.

bruno-delfim avatar bruno-delfim commented on June 22, 2024

I have the same problem.
When calling inappbrowser with _blank the statusbar becomes black

from cordova-plugin-inappbrowser.

NishantDesai1306 avatar NishantDesai1306 commented on June 22, 2024

I'm also stuck at this point, my app does not have status bar at the splash screen (which is how I've set it) but as soon as I open any webpage in inAppBrowser the status bar returns.

from cordova-plugin-inappbrowser.

cape-dev avatar cape-dev commented on June 22, 2024

For now a quiet dirty quickfix is to set the statusbar styles on exit of the InAppBrowser:

const iab = this.browser.create(url, 'blank', this.iabOptions);
const exitSubscription = iab.on('exit').subscribe(() => {
      let counter = 1;
      const intervalId = setInterval(() => {
        if (counter < 20) {
          this.statusBar.styleLightContent();
          counter++;
        } else {
          clearInterval(intervalId);
          exitSubscription.unsubscribe();
        }
      }, 100);
    });

I am setting the style multiple times because somehow the app does not recognize any stylings to the statusBar via the plugin's methods for some time (this time differs on different devices). Maybe the Ionic context is not ready yet.

from cordova-plugin-inappbrowser.

Damini17 avatar Damini17 commented on June 22, 2024

Any solution to the above issue @zdd?

Thanks in advance!

from cordova-plugin-inappbrowser.

Macfa avatar Macfa commented on June 22, 2024

+1

from cordova-plugin-inappbrowser.

DigitalTAC avatar DigitalTAC commented on June 22, 2024

+1

from cordova-plugin-inappbrowser.

breautek avatar breautek commented on June 22, 2024

If this was an issue on ios, #656 was merged in that made a lot of changes with the statusbar while the inappbrowser was displayed. This PR should be included in the latest version of the plugin.

It would be appreciated if one can test against the latest version to see if this issue still is valid.

from cordova-plugin-inappbrowser.

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.