# 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
