Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
1 answer
1k views

Firebase Cloud Messaging Unable to Get Token on Vue 3

I am creating an App that will get real time notification with firebase cloud messaging, but it seems does not work for me. I am following their documentation an put firebase-messaging-sw.js in root ...
Matius Nugroho Aryanto's user avatar
4 votes
0 answers
1k views

How to register a FCM Push Notification Receiving Service Worker in Vue 2

I am using firebase version 8.2.7 Code in public/firebase-messaging-sw.js //firebase-messaging-sw.js importScripts("https://www.gstatic.com/firebasejs/8.2.7/firebase-app.js"); importScripts(...
Abdullah Ch's user avatar
  • 2,191
5 votes
1 answer
2k views

Import modules from HTTPS in a Service Worker

I'm attempting to implement Firebase Cloud Messaging for the web using their v9 SDK, which is heavily pushing using Javascript modules... and I need to register the service worker inside of a Vue ...
zyx's user avatar
  • 131
7 votes
0 answers
1k views

Register Firebase service worker with existing workbox worker

I'm using Google's Workbox for some offline features and caching in my angular 9, app. For push messages, we're using Google's Firebase. Since updating the web app to Vue.js I receive an error when ...
Archer's user avatar
  • 1,134
0 votes
1 answer
346 views

The webpage on mobile is blank when Firebase and ServiceWorkert are initialized in a Vue CLI project

(I'm new to VueJS and Firebase) Hello! I have a very weird problem with my project. I have been trying to add FCM (Firebase Cloud Messaging) to my Vue CLI project. This is the code of my main.js ...
Haim Lvov's user avatar
  • 1,063
1 vote
1 answer
1k views

Creating a custom firebase data message handler vue that replies to originating app on push notification

I have a Vue app that is linked to Firebase messaging service. Firebase uses a service worker to handle the push notifications. The service worker is registered by the vue CLI 3. When a firebase data ...
Hugo van Schalkwyk's user avatar
2 votes
0 answers
856 views

Redirect / Failed to fetch error for service worker in Vue app hosted on Firebase

I am having difficulty debugging a failing service worker: This is a single-page Vue app deployed to firebase, with the firebase.json file pasted below. The service-worker.js file is generated by the ...
songololo's user avatar
  • 4,964
13 votes
1 answer
11k views

Vue pwa with firebase cloud messaging not working properly

im trying the following code: navigator.serviceWorker.register('service-worker.js') .then((registration) => { const messaging = firebase.messaging().useServiceworker(registration)...
eeerrrttt's user avatar
  • 616
0 votes
1 answer
398 views

Register service worker with correct MIME-Type

I am trying to register a service in Vue.js, so that I will be able to send push notifications using Firebase Cloud Messaging. I put a file called firebase-messaging-sw.js in the static folder. I can ...
Developer's user avatar
  • 2,331
-1 votes
1 answer
445 views

Reload after hard reload still remains the same

I'm studying how to integrating Firebase with Vue. The features including Realtime database, push notifications and hosting. I'm using this PWA template to do it. It all went out okay until now ...
Cloud Soh Jun Fu's user avatar