[x] You've searched through existing issues: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue Chances are that your issue has been reported or resolved before.
Server: parse-server version 2.2.7, operating system: Mac OSX El Capitain, local
Database: MongoDB 3
I'm trying to send an iOS push notification (haven't tested android yet), and it fails with no errors, here is my config:
push: {
android: {
senderId: '[secret]',
apiKey: '[secret]'
},
ios: [{
pfx: __dirname + '/certs/Prod.p12',
bundleId: '[secret]',
production: true
},
{
pfx: __dirname + '/certs/Dev.p12',
bundleId: '[secret]',
production: false
}]
}
I'm using this curl:
curl -X POST \
-H "X-Parse-Application-Id: [secret]" \
-H "X-Parse-Master-Key: [secret]" \
-H "Content-Type: application/json" \
-d '{
"where": {
"deviceType": "ios"
},
"data": {
"alert": "Hello World!"
}
}' \
http://localhost:1337/parse/push
And by enabling VERBOSE=1 I'm getting:
verbose: POST /parse/push { host: 'localhost:1337',
'user-agent': 'curl/7.43.0',
accept: '*/*',
'x-parse-application-id': '[secret]',
'x-parse-master-key': '[secret]',
'content-type': 'application/json',
'content-length': '131' } {
"where": {
"deviceType": "ios"
},
"data": {
"alert": "Hello World!"
}
}
verbose: {
"headers": {
"X-Parse-Push-Status-Id": "z50b72vAxW"
},
"response": {
"result": true
}
}
verbose: sending push to 1 installations
verbose: sent push! 0 success, 0 failures
I don't know why my pushs aren't being sent, but this message should show either 1 success or 1 failure right?
Have you tried sending a test push notification through the parse dashboard? We're also having issues with push notifications. We couldn't get our in app pushes to deliver through the API or through the dashboard. No errors, just pushes not being delivered.
@jgyeh yeah, also getting 0 deliveries from parse.com ):



Hmm apparently my device tokens are empty
After enabling the push capability on xcode (it should have been enabled already, because it was working before, idk what happened) and copying the new swift code on parse.com tutorial (here) it worked, thanks!
Hi @rogeriochaves,
how do you fix the problem? I have also the same problem, sent and deliver is 0, but push notifications are received on iOS device.
@aBuder sorry, I don't remember, it was a long time ago ):
Can you share the code?