In firebase, You have to generate
- Generate VapidKey and applied in file "./firebase/firebase.js"
- You have to add config variables. "./firebase/firebase.js" and "./public/firebase-messaging-sw.js"
- After, you execute de npm run dev. It will appear the token in the console, you can use that token to send a test message. and it will send the foreground and background notification.