Description
In the current parse.com, to increment a badge one uses:
...
"badge: "increment"
...
Just tested with curl and it seems that in the parse-server, to increment badge, I need to send 'Increment' with a capital 'I':
...
"badge: "Increment"
...
A bug/oversight or on purpose? Suggest, at the very least for docs/gist/readme to be updated.
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
- [y] You've met the prerequisites.
- [y] You're running the latest version of Parse Server.
- [y] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Standard heroku deployment (not via button)
Steps to reproduce
curl -X POST
-H "X-Parse-Application-Id: app-id"
-H "X-Parse-Master-Key: master-key"
-H "Content-Type: application/json"
-d '{
"where": {},
"data": {
"alert": "New Alert",
"badge": "increment"
}
}'
https://app.url/parse/push
Logs/Trace
2016-03-28T11:11:20.026577+00:00 app[web.1]: Uncaught internal server error. Invalid value for badge, expected number or 'Increment' undefined