mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Improve wording for push notifications (#11378)
This commit is contained in:
committed by
Matteo Pagliazzi
parent
b142225a5a
commit
17e8b0a0fd
@@ -19,7 +19,7 @@ if (APN_ENABLED) {
|
||||
keyId: nconf.get('PUSH_CONFIGS_APN_KEY_ID'),
|
||||
teamId: nconf.get('PUSH_CONFIGS_APN_TEAM_ID'),
|
||||
},
|
||||
production: nconf.get('IS_PROD'),
|
||||
production: true,
|
||||
}) : undefined;
|
||||
}
|
||||
|
||||
@@ -56,7 +56,9 @@ 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',
|
||||
|
||||
Reference in New Issue
Block a user