angular / angular/angularfire

FCM -> Angular Build Optimization Message Error

Open
#3,600 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

When Angular's build optimization flag is set to true in angular.json. the line throws: Service messaging is not available
provideMessaging(() => getMessaging()),

Also check this image for reference from this issue: https://github.com/firebase/firebase-js-sdk/issues/7707

![Image](https://github.com/user-attachments/assets/45368703-3b42-41a9-8c67-947543044514)

Please help out. thanks.

Contributor guide

Open the contributing guide

Research direction

Start with the angular.json build optimization setting and the provideMessaging(() => getMessaging()) entry point described in the report. Compare the failure with the linked Firebase issue and reproduce an Angular build with optimization enabled; done means messaging initializes without the reported “Service messaging is not available” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.