npm.io
0.0.2 • Published 6 years ago

ng-fcm-push

Licence
—
Version
0.0.2
Deps
1
Size
82 kB
Vulns
0
Weekly
0

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