# ng-fcm-push

> This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

Latest version **0.0.2** (published 2020-07-18) · 0 weekly downloads

## Install

```sh
npm install ng-fcm-push
pnpm add ng-fcm-push
yarn add ng-fcm-push
bun add ng-fcm-push
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-07-18 |
| First published | 2020-07-18 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 81.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | robertochajin |

## Links

- npm: https://www.npmjs.com/package/ng-fcm-push
- npm.io page: https://npm.io/package/ng-fcm-push

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 0.0.2 (latest) — 2020-07-18
- 0.0.1 — 2020-07-18

## README

# NG FCM Push

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## How to use

1. In your app.module.ts import FcmPushModule and Configuration from ng-fcm-push.

To get FCM_SERVER_KEY you need to go to firebase console and go to project configuration, then
on Cloud Messaging tab, get the Server Key

```javascript

import {NgModule} from '@angular/core';
import {FcmPushModule, Configuration} from 'ng-fcm-push';

const config: Configuration = {
    token: 'FCM_SERVER_KEY'
};

@NgModule({
    declarations: [AppComponent],
    imports: [
        FcmPushModule.forRoot(config)
    ]
})
```

Now you can use FcmPushService to send push notifications

---
_Source: https://npm.io/package/ng-fcm-push · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
