From 1722e938f782e81ab3bca69dd72b38bec9c3ed32 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Sun, 7 Jul 2024 09:19:54 +0100 Subject: [PATCH] [FIX] odex_web_app: ifix fcm api body --- odex25_mobile/odex_web_app/models/hr_employee.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/odex25_mobile/odex_web_app/models/hr_employee.py b/odex25_mobile/odex_web_app/models/hr_employee.py index c46dff3e4..2380f685b 100644 --- a/odex25_mobile/odex_web_app/models/hr_employee.py +++ b/odex25_mobile/odex_web_app/models/hr_employee.py @@ -23,7 +23,10 @@ class HrEmployee(models.Model): body = json.dumps({ "to": self.fcm_token_web, "direct_boot_ok": True, - "notification": notification + "notification": { + "title": "Message", + "body": notification + } }) try: respons = requests.post(url=url, data=body, headers=header)