diff --git a/backend/index.js b/backend/index.js index 75817a4..5430f5d 100644 --- a/backend/index.js +++ b/backend/index.js @@ -140,8 +140,11 @@ app.post('/sendmessage', async (req, res) => { }, topic: 'all', apns: { - headers: { - 'apns-push-type': 'alert' + payload: { + aps: { + badge: 1, + sound: 'default' + } } } }; diff --git a/backend/notification.mp3 b/backend/notification.mp3 new file mode 100644 index 0000000..1e5ab73 Binary files /dev/null and b/backend/notification.mp3 differ