Commit 17972e45 authored by Luko van der Maas's avatar Luko van der Maas Committed by Sébastiaan Versteeg

Merge branch 'feature/app-notification-data' into 'master'

Add notification title+body to message data

See merge request !1279

(cherry picked from commit 3cd7b430)

68098ddf Add notification title+body to message data
parent dcaac796
......@@ -149,11 +149,13 @@ class Message(models.Model, metaclass=ModelTranslateMeta):
data = kwargs.get('data', {})
if self.url is not None:
data['url'] = self.url
data['title'] = self.title
data['body'] = str(self.body)
message = messaging.Message(
notification=messaging.Notification(
title=self.title,
body=str(self.body),
title=data['title'],
body=data['body'],
),
data=data,
android=messaging.AndroidConfig(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment