Description
APNS push is working.
GCM push is not working and no logs.
In same environment, https://api.parse.com/1/push is very well.
What the ploblem.
Environment Setup
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var app = express();
// Specify the connection string for your mongodb database
// and the location to your Parse cloud code
var api = new ParseServer({
databaseURI: 'my',
cloud: 'my', // Provide an absolute path
appId: 'my',
masterKey: 'my',
clientKey: 'my',
restAPIKey: 'my',
javascriptKey: 'my',
dotNetKey: 'my',
fileKey:'my',
push: {
android: {
senderId: '1235215235', // The Sender ID of GCM
apiKey: 'myKey' // The Server API Key of GCM
},
ios: {
pfx: '/push/apppro.p12', // Prod PFX or P12
bundleId: 'com.my.myapp',
production: true // Prod
}
},
serverURL: 'http://localhost:1337/parse' // Don't forget to change to https if needed
});
// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);
app.listen(1337, function() {
console.log('parse start');
});
Steps to reproduce
curl -X POST
-H "X-Parse-Application-Id: appKey"
-H "X-Parse-Master-Key: masterKey"
-H "Content-Type: application/json"
-d '{
"where": {
"channels": {
"$in": [
"cha1",
"cha2"
]
}
},
"data": {
"title": "The Shining",
"alert": "message"
}
}'\ http://localhost/parse/push
Logs/Trace
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Disconnected
APNS Connection 0 Connected
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Disconnected
APNS Connection 0 Connected
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg