Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files
modules/firebase/messaging.py
CHANGED
|
@@ -86,11 +86,10 @@ class FcmService:
|
|
| 86 |
"""Send an FCM notification to all users subscribed to a topic."""
|
| 87 |
try:
|
| 88 |
message = messaging.Message(
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
# ),
|
| 94 |
data=data or {},
|
| 95 |
topic=topic, # 👈 send to everyone subscribed to this topic
|
| 96 |
android=messaging.AndroidConfig(
|
|
|
|
| 86 |
"""Send an FCM notification to all users subscribed to a topic."""
|
| 87 |
try:
|
| 88 |
message = messaging.Message(
|
| 89 |
+
notification=messaging.Notification(
|
| 90 |
+
title=title,
|
| 91 |
+
body=body,
|
| 92 |
+
),
|
|
|
|
| 93 |
data=data or {},
|
| 94 |
topic=topic, # 👈 send to everyone subscribed to this topic
|
| 95 |
android=messaging.AndroidConfig(
|