You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm creating a PWA via npx create-react-app myPWA --template cra-template-pwa Now my question is that how do I use the firebase cloud messaging in this progressive web app? Because the app already has a serviceworker present in it's source and I'm not getting that how do I integrate firebase-messaging-sw.js file with it. I searched on google but couldn't find any proper examples. How to use standard serviceworker provided by create-react-app along with firebase-messaging-sw.js? If possible, a small example will be very much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I'm creating a PWA via npx create-react-app myPWA --template cra-template-pwa Now my question is that how do I use the firebase cloud messaging in this progressive web app? Because the app already has a serviceworker present in it's source and I'm not getting that how do I integrate firebase-messaging-sw.js file with it. I searched on google but couldn't find any proper examples. How to use standard serviceworker provided by create-react-app along with firebase-messaging-sw.js? If possible, a small example will be very much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions