apache / apache/cordova-plugin-splashscreen

Electron/Browser JS crash, SplashScreenProxy

Open
#244 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
640
Forks
626
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

### Command or Code
```
cordova plugin add cordova-plugin-splashscreen@latest
cordova platform add electron@latest
cordova run electron --nobuild

```
```







```

### What does actually happen?
```
adding proxy for SplashScreen
SplashScreenProxy.js:80 Uncaught TypeError: Cannot read property 'appendChild' of null
at Object.show (SplashScreenProxy.js:80)
at showAndHide (SplashScreenProxy.js:143)
at SplashScreenProxy.js:158
at XMLHttpRequest.xhrStatusChangeHandler (cordova.js:902)
```

### Environment, Platform, Device
cordova@9.0.0
cordova-lib@9.0.1
cordova-plugin-splashscreen@5.0.3
cordova-electron@1.1.1.

## 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

Reproduce the issue with the listed cordova plugin, platform, and run commands, then inspect SplashScreenProxy.js around show at line 80 and its callers showAndHide and the initialization near line 158. Trace why the element used by appendChild is null in the Electron/browser environment; done means the splash screen no longer crashes and the reported commands run successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript
Domain
desktop
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.