Skip to content

Commit

Permalink
docs: Add enable Cloud Messaging note
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Jun 1, 2023
1 parent 0a55cf3 commit 537d2af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ export default defineNuxtConfig({

- `firebaseConfig` Firebase project configuration
- `vapidKey` Public server key provided to push services [docs](https://firebase.google.com/docs/cloud-messaging/js/client?authuser=0#configure_web_credentials_with)
- `serviceAccount` Firebase admin credentials [docs](https://firebase.google.com/docs/admin/setup?authuser=0#initialize_the_sdk_in_non-google_environments). You can ignore this property in case the app server is not needed.
- `serviceAccount` Firebase admin credentials [docs](https://firebase.google.com/docs/admin/setup?authuser=0#initialize_the_sdk_in_non-google_environments). You can ignore this property in case the app server is not needed

4. Add firebase messaging service worker by creating `firebase-messaging-sw.js` file under `public` folder
4. If you are using app server, make sure to enable `Cloud messaging API` [docs](https://firebase.google.com/docs/cloud-messaging/server#firebase-admin-sdk-for-fcm)

5. Add firebase messaging service worker by creating `firebase-messaging-sw.js` file under `public` folder

```js
// public/firebase-messaging-sw.js
Expand Down

0 comments on commit 537d2af

Please sign in to comment.