invertase / invertase/flutterfire_cli

request: generate or support web/firebase-messaging-sw.js

Open
#215 11 comments 11 reactions 0 assignees View on GitHub
enhancement keep open Needs Attention
Dominant language
Dart
Stars
193
Forks
74
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing feature request for this?

- [X] I have searched the existing issues.

### Command

flutterfire configure --include-messaging

### Description

Running "flutterfire configure" works like a charm for normal Firebase operations, but is missing out on Cloud Messaging assistance. We now need to still manually and hardcoded introduce our own firebase-messaging-sw.js for web.

Steps to reproduce the behavior:
Run "flutterfire configure"
Notice web/firebase-messaging-sw.js is not created

Expected behavior
web/firebase-messaging-sw.js or any working equivalent should be created, optionally through flag or always

### Reasoning

messaging is important component of many apps.
Hardcoding should be avoided where possible

### Additional context and comments

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.