How to Troubleshoot Firebase Cloud Messaging
-
Hello,
I have a quasar/capacitor application that I would like to use FCM. I am trying to find a way to troubleshoot/test FCM with the local dev server that runs with 'quasar dev -m capacitor -T android". It’s my understanding that I need https so I change quasar.config.js -> devServer -> https: true but that didn’t seem to work. I am also having issues with troubleshooting firebase Google Auth when I have it as “signInWithRedirect” because I believe it is using the local dev server also.
What is a good way to troubleshooting Firebase FCM with local devServer or should I be using something else?
Thanks.
-
It looks like troubleshooting the Push Notification from a local Dev Server is working just fine. I see in the dev tools the notifications from firebase.
-
@marknigh Hi, Can you please share your thought on how to get the device token…I am trying below code, unfortunately, it’s showing getToken of undefined
const fcm = new FCM(); fcm .getToken() .then(r => console.log(`Token ${r.token}`)) .catch(err => console.log(err));
-
What Quasar
mode
are you using? (SPA, Capacitor, Cordova, ect)