Add default badge to push notification (#2859)

This commit is contained in:
Paulus Schoutsen 2016-08-16 23:05:00 -07:00 committed by Robbie Trencheny
parent 7720a17c18
commit 2237189c86
2 changed files with 1 additions and 0 deletions

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -157,6 +157,7 @@ class HTML5NotificationService(BaseNotificationService):
'body': message,
'data': {},
'icon': '/static/icons/favicon-192x192.png',
'badge': '/static/images/notification-badge.png',
'timestamp': (timestamp*1000), # Javascript ms since epoch
'title': kwargs.get(ATTR_TITLE)
}