I have 3 files for fcm service worker
- firebase-messagaging-sw.dev.js
- firebase-messagaging-sw.staging.js
- firebase-messagaging-sw.prod.js and put it as assets in angular.json.
Unfortunately, I got an error in development environment: The script has an unsupported MIME type ('text/html'). (messaging/failed-service-worker-registration).