Send push notifications on mentions

This commit is contained in:
Phillip Thelen
2019-09-30 15:10:20 +02:00
parent ed266adfc2
commit 0072a3968d
4 changed files with 33 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ function sendNotification (user, details = {}) {
case 'ios':
if (apnProvider) {
const notification = new apn.Notification({
alert: details.message,
alert: {title: details.title, body: details.message},
sound: 'default',
category: details.category,
topic: 'com.habitrpg.ios.Habitica',