Open 93lucasp opened 1 year ago
I resolved the issue, after removing server property at the end of nuxt.config.js. FCM didn't work when my project wasn't running on localhost.
...other configs above
// Build Configuration: https://go.nuxtjs.dev/config-build build: { vendor: ['vue-i18n'], }, server: { //remove this server property entirely. host: "0.0.0.0" } }
Version
@nuxtjs/firebase: 8.2.2 firebase: 9.15.0 nuxt: 2.15.8
What is actually happening?
In the mounted
$fire.messaging
is undefined.this is my configuration:
and this is the code inside the mounted:
but it is undefined![Schermata 2022-12-19 alle 17 24 27](https://user-images.githubusercontent.com/12210564/208478632-82b5637d-acb4-4107-a1a5-646904be6aad.png)