Closed
Description
- [ x] I am not disclosing a vulnerability.
- [x ] I am not just asking a question.
- [ x] 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
I recently changed the push data payload so that a subtitle can show up on iOS devices but that change has caused the JSON payload to show up in the push on Android devices. This is how I'm sending the push:
Parse.Push.send({
where: mainQuery,
data: {
alert: {
title : pushMessage.title,
subtitle: pushMessage.subtitle,
body: pushMessage.message
},
sound: pushMessage.sound,
reportType: pushMessage.reportType,
uri: pushMessage.uri,
payload: pushMessage.payload
}
}, {
useMasterKey: true,
success: function() {
},
error: function(error) {
}
});
What param to I have to pass in order to display the push properly on Android and iOS.
Steps to reproduce
Send a push to iOS and Android devices using the above format
Actual Outcome
Push gets properly sent to iOS properly but not Android
Expected Outcome
Push gets sent properly to both iOS and Android
Environment
?
Client
- Parse Server Push Adapter version:
FILL_THIS_OUT
Server
- Parse Server version:
2.8.4
- Operating system:
Ubuntu
- Local or remote host
Digital Ocean
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
3.0.15
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Local
Client
- Parse JS SDK version:
1.11.0
Logs
None included