apache / apache/cordova-plugin-splashscreen

Can not disable splash screen for browser platform

Open
#191 11 comments 0 reactions 0 assignees View on GitHub
bug platform: browser
Dominant language
JavaScript
Stars
640
Forks
626
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem

### What is expected to happen?
Splash screen is disabled for browser platform using this configuration in config.xml:
```

```
as explained in the documentation: [Browser quirks](https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/#browser-quirks)

### What does actually happen?
The splash screen is still showing

## Information

I'm using "cordova-browser": "6.0.0"

I think the problem is in : [SplashScreenProxy.js](https://github.com/apache/cordova-plugin-splashscreen/blob/8490496c0b5ecdb8798a3c3a4b93f0a3fe85c928/src/browser/SplashScreenProxy.js#L156)

```
if (autoHideSplashScreen) {
showAndHide();
} else {
SplashScreen.show();
}
```
If autoHideSplashScreen is "false" (I have it set to "false" for all the platforms. But if I try to override it for browser platform it does not work either) then it will try to show the splash screen even if "ShowSplashScreen" is false.

### Command or Code

ionic cordova build browser

### Environment, Platform, Device

Windows 10, Google Chrome browser Version 73.0.3683.103 (Official Build) (64-bit)

### Version information

```
$ ionic info

Ionic:

ionic (Ionic CLI) : 4.12.0 (C:\Users\Eliseo Castilla\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.2.0
@angular-devkit/build-angular : 0.13.8
@angular-devkit/schematics : 7.3.8
@angular/cli : 7.3.8
@ionic/angular-toolkit : 1.5.1

Cordova:

cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 11 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\Android\sdk)
NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
npm : 6.8.0
OS : Windows 10
```

## 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 with src/browser/SplashScreenProxy.js at the initialization logic linked in the issue, then reproduce with the shown config.xml and `ionic cordova build browser` command. Confirm that setting ShowSplashScreen to false for the browser platform prevents the splash screen from appearing, while preserving the documented browser behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.