Skip to content

Commit

Permalink
Merge pull request #65 from BIDMCDigitalPsychiatry/title-change-ios
Browse files Browse the repository at this point in the history
#fixes title in ios
  • Loading branch information
ZCOEngineer authored Jan 24, 2023
2 parents aa2e345 + abe872c commit 6d6dbbd
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/queue/SchedulerQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,19 @@ export function sendNotification(device_token: string, device_type: string, payl
device_token: device_token,
payload: {
aps: {
alert: `${payload.message}.`,
alert: {
"loc-key": "You have a mindLAMP activity waiting for you: %@.",
"loc-args": [
`${payload.title}.`
]
},
badge: 0,
sound: "default",
"mutable-content": 1,
"content-available": 1,
"push-type": "alert",
"collapse-id": `${notificationId}`,
expiration: 10,
"loc-key": "You have a mindLAMP activity waiting for you: %@.",
"loc-args": [
`${payload.title}.`
]

expiration: 10
},
notificationId: `${notificationId}`,
expiry: 21600000,
Expand Down Expand Up @@ -189,18 +189,19 @@ export function sendNotification(device_token: string, device_type: string, payl
device_token: device_token,
payload: {
aps: {
alert: `${payload.message}.`,
alert: {
"loc-key": "You have a mindLAMP activity waiting for you: %@.",
"loc-args": [
`${payload.title}.`
]
},
badge: 0,
sound: "default",
"mutable-content": 1,
"content-available": 1,
"push-type": "background",
"collapse-id": `${notificationId}`,
expiration: 10,
"loc-key": "You have a mindLAMP activity waiting for you: %@.",
"loc-args": [
`${payload.title}.`
]
expiration: 10
},
notificationId: `${notificationId}`,
expiry: 21600000,
Expand Down

0 comments on commit 6d6dbbd

Please sign in to comment.