# cordova-plugin-window-background

> Plugin to set Android window background for Cordova/Ionic applications

Latest version **1.1.2** (published 2019-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-window-background
pnpm add cordova-plugin-window-background
yarn add cordova-plugin-window-background
bun add cordova-plugin-window-background
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-04-27 |
| First published | 2016-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Douglas Zaltron |
| Maintainers | douglaszaltron |
| Keywords | cordova, ecosystem:cordova, cordova-android, android, ionic, background, window, background |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-window-background
- Repository: https://github.com/douglaszaltron/cordova-plugin-window-background
- Issues: https://github.com/douglaszaltron/cordova-plugin-window-background/issues
- npm.io page: https://npm.io/package/cordova-plugin-window-background

## Dependencies (2)

- [q](https://npm.io/package/q.md) 1.5.1
- [xml2js](https://npm.io/package/xml2js.md) 0.4.19

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2019-04-27
- 1.1.1 — 2019-02-21
- 1.1.0 — 2018-08-27
- 1.0.2 — 2018-08-27
- 1.0.1 — 2018-01-26
- 1.0.0 — 2016-12-19

## README

# :art: cordova-plugin-window-background

[![Latest Stable Version](https://img.shields.io/npm/v/cordova-plugin-window-background.svg)](https://www.npmjs.com/package/cordova-plugin-window-background)
[![Total Downloads](https://img.shields.io/npm/dt/cordova-plugin-window-background.svg)](https://npm-stat.com/charts.html?package=cordova-plugin-window-background)

This is a simple plugin for Android which will set the window background color for you app's MainActivity to a color of your choice.
This allows you to avoid the standard dark grey background which will flash for a second before your splash screen appears. Set the color to the same background as your splash screen for a smoother start-up effect.

## Installation

You'll need to set your desired window background color while installing the plugin by supplying the `WINDOW_BACKGROUND_COLOR` variable. Set it to whatever you want, preferably the same color as your splash screen.

    cordova plugin add cordova-plugin-window-background --variable WINDOW_BACKGROUND_COLOR=#ffffff --save
	
Or install directly from this repo:

    cordova plugin add https://github.com/douglaszaltron/cordova-plugin-window-background.git --variable WINDOW_BACKGROUND_COLOR=#ffffff --save

	
## Supported Platforms

- Android (cordova-android 6.0.0+)

## Configuration

A custom `WINDOW_BACKGROUND_COLOR` variable will be added to your app's config.xml after installation with the value you selected (provided you included the `--save` flag).

<plugin name="cordova-plugin-window-background">
    <variable name="WINDOW_BACKGROUND_COLOR" value="#ffffff" />
</plugin>

---
_Source: https://npm.io/package/cordova-plugin-window-background · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
