From a3dbe95d5a333ec238d2819044dfcb5754f0b86f Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 5 Jan 2023 17:36:07 +0100 Subject: [PATCH] fix: update android notification payload (#1090) --- engine/apps/mobile_app/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/apps/mobile_app/tasks.py b/engine/apps/mobile_app/tasks.py index 2ce35f44..04bbe5b7 100644 --- a/engine/apps/mobile_app/tasks.py +++ b/engine/apps/mobile_app/tasks.py @@ -86,7 +86,8 @@ def notify_user_async(user_pk, alert_group_pk, notification_policy_pk, critical) "status": str(alert_group.status), "type": "oncall.critical_message" if critical else "oncall.message", "title": alert_title, - "body": f"{alert_subtitle}\n{alert_body}", + "subtitle": alert_subtitle, + "body": alert_body, "thread_id": thread_id, }, apns=APNSConfig(