habulaj commited on
Commit
b3dfad2
·
verified ·
1 Parent(s): 0dfa8f1

Update routes/sendnotifications.py

Browse files
Files changed (1) hide show
  1. routes/sendnotifications.py +4 -1
routes/sendnotifications.py CHANGED
@@ -183,7 +183,10 @@ async def send_notification(
183
  },
184
  "token": target_user["token_fcm"],
185
  "android": {
186
- "collapse_key": collapse_id
 
 
 
187
  },
188
  "apns": {
189
  "headers": {
 
183
  },
184
  "token": target_user["token_fcm"],
185
  "android": {
186
+ "collapse_key": collapse_id,
187
+ "notification": {
188
+ "tag": collapse_id # 🔥 ESSENCIAL para evitar duplicata visual
189
+ }
190
  },
191
  "apns": {
192
  "headers": {