Skip to content

Push Notification not sent. APNS Connection 0 Notification transmitted to 'ADeviceToken' APNS Connection 0 Socket Error #1206

@aliasad106

Description

@aliasad106

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: {

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions