-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
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!
- [ ] You've met the prerequisites.
- [ ] You're running the latest version of Parse Server.
- [ ] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Parse-Server version 2.2.2
var api = new ParseServer({
databaseURI: databaseUri || databaseUri ,
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'abyaappid',
masterKey: process.env.MASTER_KEY || 'abyamasterkey', //Add your master key here. Keep it secret!
fileKey: process.env.FILE_KEY || '', // Add the file key to provide access to files already hosted on Parse
clientKey: 'abyaclientkey',
push: {
ios: {
pfx: 'certificatesdev.p12', // the path and filename to the .p12 file you exported earlier.
bundleId: 'com.abc.abc', // The bundle identifier associated with your app
production: false
}
},
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse' // Don't forget to change to https if needed
});
Steps to reproduce
running this code in afterSave
Parse.Push.send({
where: {
"deviceType": { "$in": [ "ios"] }
},
data: {
"title": "Hello world",
"alert": "Push Notification."
}
}, { useMasterKey: true });
});
Logs/Trace
APNS Connection 0 Notification transmitted to 'ADeviceToken'
APNS Connection 0 Notification transmitted to 'ADeviceToken'
APNS Connection 0 Notification transmitted to 'ADeviceToken'
APNS Connection 0 Notification transmitted to 'ADeviceToken'
APNS Connection 0 Socket Error
APNS Connection 0 Socket Error
APNS Connection 0 Socket Error
APNS Connection 0 Socket Error
APNS Connection 0 Disconnected
APNS Connection 0 Socket Error
APNS Connection 0 Disconnected
APNS Connection 0 Socket Error
APNS Connection 0 Socket Error
APNS Connection 0 Disconnected
APNS Connection 0 Socket Error
APNS Connection 0 Disconnected
APNS Connection 0 Socket Error
APNS Connection 0 Socket Error
APNS Connection 0 Disconnected