vikramvasudevan commited on
Commit
a6db207
·
verified ·
1 Parent(s): 468751c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. modules/firebase/messaging.py +4 -5
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
- ## Commented out to avoid duplicate notifications.
90
- # notification=messaging.Notification(
91
- # title=title,
92
- # body=body,
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(