FCM -> Angular Build Optimization Message Error

Open
#3,600 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

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

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.

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

Please help out. thanks.

Dominant language
TypeScript
Stars
7.8k
Forks
2.1k
Avg merge
2d 22h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angularfire

All issues in angular/angularfire

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.