emile 8 months ago
parent 277b47a79a
commit 5fa1c6d601

@ -14,7 +14,6 @@ def send_notification(notification):
notification_data = { notification_data = {
'title': notification.title, 'title': notification.title,
'body': mark_safe(notification.message), 'body': mark_safe(notification.message),
'id': notification.type_id
} }
if notification.type == 'Chat': if notification.type == 'Chat':
@ -52,7 +51,7 @@ def send_notification(notification):
body=notification_data['body'], body=notification_data['body'],
image=notification.image, image=notification.image,
), ),
data={"image": notification.image}, data={"image": notification.image, "id": notification.type_id, "type": notification.type},
android=android_config, android=android_config,
apns=apns_config apns=apns_config
) )
@ -64,6 +63,7 @@ def send_notification(notification):
title=notification_data['title'], title=notification_data['title'],
body=notification_data['body'], body=notification_data['body'],
), ),
data={"id": notification.type_id, "type": notification.type},
android=android_config, android=android_config,
apns=apns_config apns=apns_config
) )

Loading…
Cancel
Save