Skip to content

Push notification - bage increment - changed to uppercase "I"? #1223

Closed
@goggelj

Description

@goggelj

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!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions