v0.12.7 FCM bug fixes

This commit is contained in:
2026-03-23 19:10:21 -04:00
parent ad67330d20
commit eca93aae28
8 changed files with 1352 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "rosterchirp-backend",
"version": "0.12.6",
"version": "0.12.7",
"description": "RosterChirp backend server",
"main": "src/index.js",
"scripts": {

View File

@@ -47,6 +47,10 @@ async function sendPushToUser(schema, userId, payload) {
groupId: payload.groupId ? String(payload.groupId) : '',
},
android: { priority: 'high' },
apns: {
headers: { 'apns-priority': '10' },
payload: { aps: { contentAvailable: true } },
},
webpush: { headers: { Urgency: 'high' } },
});
} catch (err) {
@@ -141,6 +145,10 @@ router.post('/test', authMiddleware, async (req, res) => {
const message = {
token: sub.fcm_token,
android: { priority: 'high' },
apns: {
headers: { 'apns-priority': '10' },
payload: { aps: { contentAvailable: true } },
},
webpush: { headers: { Urgency: 'high' } },
};