Open
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse Server Push Adapter.
Issue Description
iOS devices were only receiving the alert body. The alert title was not showing up. This is the payload I tested with.
const result = await Parse.Push.send(
{
where: pushQuery,
// WORKS FOR ANDROID
notification: {
title: 'Android title',
body: 'Android notification body',
},
sound: 'default',
// WORKS FOR IOS
data: {
// alert: { title: 'iOS data alert title', body: 'iOS data alert body' }, // <-- this works, avoids the bug in the adapter code, and sets both title+body
title: 'iOS data title',
alert: 'iOS data alert', // <-- will overwrite the title key
priority: '10',
collapse_id: '1',
},
},
{
useMasterKey: true,
}
)
Steps to reproduce
- Configure project using FCM to send iOS push notifications.
- Send notification to an iOS device with the payload provided above.
Actual Outcome
- Push notification is received, however the title was missing.
Expected Outcome
- Should have received both title and alert message.
Environment
"@parse/push-adapter": "^6.5.0"
"parse-server": "~7.2.0"
Logs
- not relevant, logs stated that push notification was sent successfully.
Metadata
Metadata
Assignees
Labels
No labels