ng-fcm-push
v0.0.2
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
Downloads
4
Readme
NG FCM Push
This library was generated with Angular CLI version 8.2.14.
How to use
- 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
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