mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
APNs: Add message body to notification payload.
(Edited by greg to leave the badge logic as is for now.)
This commit is contained in:
@@ -344,7 +344,10 @@ def get_alert_from_message(message):
|
||||
def get_apns_payload(message):
|
||||
# type: (Message) -> Dict[str, Any]
|
||||
return {
|
||||
'alert': get_alert_from_message(message),
|
||||
'alert': {
|
||||
'title': get_alert_from_message(message),
|
||||
'body': message.content[:200],
|
||||
},
|
||||
# TODO: set badge count in a better way
|
||||
'badge': 1,
|
||||
'custom': {
|
||||
|
||||
Reference in New Issue
Block a user