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
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
The text was updated successfully, but these errors were encountered:
This is a major headache and one which is hard to find the cause or a solution until you stumble on firebase/flutterfire#11678
This should be documented somehow, maybe as interim workaround flutterfire configure prints a warning when configuring web, if firebase_messaging was added in pubspec.
Is there an existing feature request for this?
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
The text was updated successfully, but these errors were encountered: