0.0.2 • Published 4 years ago

ng-fcm-push v0.0.2

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

NG FCM Push

This library was generated with 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

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