-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Push Notification not sent. APNS Connection 0 Notification transmitted to 'ADeviceToken' APNS Connection 0 Socket Error #1206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What's the question? |
Sorry @flovilmart Forgot to mention that Push Notification is not working. I am having local deployment. And trying to send push notification for iOS on after save of a class. Get the above log when the Push.Send gets executed |
When you say not working, what do you mean? Not getting anything on the device? |
@flovilmart yes not getting anything on device. Also I have tested the certificate.p12 with Parse.com and it's working fine there. |
I'll have a look |
Can you try setting DEBUG=apn to print the apn debug logs before you start your server? |
I did it and I am getting notifications now on device |
ahah :) so that's all good then :) |
What was this command DEBUG=apn? Sorry I am not good in this stuff. |
And I am getting this in my log |
that indicates that the notifications are successfully transmitted to the APN sever. however it doesn't indicate if the notification gets delivered to the device. What did you change to get it delivered to the device? |
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
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: {
},
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
The text was updated successfully, but these errors were encountered: