Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Aug 21, 2023
2 parents 77cfee1 + 30092a9 commit 6717173
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 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
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6717173

Please sign in to comment.