You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/messaging.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,40 @@
8
8
9
9
Firebase FCM allows you to register devices with unique FCM tokens, that you can later programtically send notifications to using Firebase Cloud Functions. It is up to the application to update these tokens in Firebase if you want to use them in other layers of your application, i.e send a notification to all administrators, etc. In that case, you would likely want to store your fcm tokens on your user collection, or a sub collection or another collection with different permissions.
10
10
11
-
#Provide Messaging to your existing application
11
+
## Dependency Injection
12
12
13
+
As a prerequisite, ensure that `AngularFire` has been added to your project via
14
+
```bash
15
+
ng add @angular/fire
13
16
```
14
-
import { getMessaging, provideMessaging } from "@angular/fire/messaging";
15
17
16
-
bootstrapApplication(AppComponent, {
18
+
Provide a Cloud Messaging instance in the application's `app.config.ts`:
0 commit comments