[FIX] odex_web_app: ifix fcm api body
This commit is contained in:
parent
5c4354722c
commit
1722e938f7
|
|
@ -23,7 +23,10 @@ class HrEmployee(models.Model):
|
||||||
body = json.dumps({
|
body = json.dumps({
|
||||||
"to": self.fcm_token_web,
|
"to": self.fcm_token_web,
|
||||||
"direct_boot_ok": True,
|
"direct_boot_ok": True,
|
||||||
"notification": notification
|
"notification": {
|
||||||
|
"title": "Message",
|
||||||
|
"body": notification
|
||||||
|
}
|
||||||
})
|
})
|
||||||
try:
|
try:
|
||||||
respons = requests.post(url=url, data=body, headers=header)
|
respons = requests.post(url=url, data=body, headers=header)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue