|
Passing in the badge parameter as a String in the JSON payload to the server causes a 500 error to be returned.
Sample JSON payload: { criteria: { alias: [param.alias.toString()], }
, message: { alert: params.text, badge: params.badge.toString() || '0', }
}
If badge is not a String the operation is fine, but the docs state it's a String: https://github.com/aerogear/aerogear-unifiedpush-nodejs-client/blob/master/README.md
|