apache / apache/cordova-plugin-inappbrowser

[BUG] [Android] InAppBrowser changes StatusBar color to black when opened!

Open
#849 9 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

## Problem
Opening InAppBrowser with "_blank" option, opens the InAppbrowser but changes the StatusBar Color for android to black.

### What is expected to happen?
It should persist the existing StatusBar Color which was set when the cordova application was launched.

### Version information
Cordova Packages:

cli: 10.0.0
common: 4.0.2
create: 3.0.0
lib: 10.0.0
common: 4.0.2
fetch: 3.0.0
serve: 4.0.0

Project Installed Platforms:

android: 9.0.0
ios: 5.1.1

Project Installed Plugins:

cordova-plugin-android-permissions: 1.1.0
cordova-plugin-androidx-adapter: 1.1.1
cordova-plugin-androidx: 2.0.0
cordova-plugin-browser: 2.0.0
cordova-plugin-deeplinks: 1.1.1
cordova-plugin-device: 2.0.3
cordova-plugin-dialogs: 2.0.2
cordova-plugin-file-opener2: 3.0.5
cordova-plugin-file-transfer: 1.7.1
cordova-plugin-file: 6.0.2
cordova-plugin-geolocation: 4.0.2
cordova-plugin-inappbrowser: 4.1.0
cordova-plugin-keyboard: 1.2.0
cordova-plugin-navigationbar-color: 0.0.8
cordova-plugin-network-information: 2.0.2
cordova-plugin-os-call-number: 1.0.2
cordova-plugin-request-location-accuracy: 2.3.0
cordova-plugin-statusbar: 2.4.3
cordova-plugin-whitelist: 1.3.4
cordova-plugin-wkwebview-engine: 1.2.2
cordova-plugin-wkwebview-file-xhr: 3.0.0
cordova-plugin-x-socialsharing: 6.0.2
cordova-plugin-x-toast: 2.7.2
cordova-support-android-plugin: 1.0.2
cordova.plugins.diagnostic: 6.0.2
es6-promise-plugin: 4.2.2
onesignal-cordova-plugin: 2.11.1

Environment:

OS: macOS 11.1 (20C69) (darwin 20.2.0) x64
Node: v14.9.0
npm: 6.14.8

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by locating the Android InAppBrowser implementation and the handling for the "_blank" option, then reproduce the behavior with the listed Cordova and Android versions. The work is done when opening InAppBrowser no longer changes the existing Android StatusBar color to black.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.