You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with sending push notification from my application error. Please someone let me know how to fix this since I am trying to fix this issue for a month now.
events.js:72
throw er; // Unhandled 'error' event
^
TypeError: Cannot set property 'socket' of null
at Object.exports._extend (util.js:573:21)
at normalizeConnectArgs (tls.js:1324:20)
at Object.exports.connect (tls.js:1331:14)
at apnSocketLegacy (/Users/Buddhika/Development/cloud/google/myapp//node_modules/loopback-component-push/node_modules/apn/lib/socket.js:40:19)
at Connection.initialize.spread.fail.terminated (/Users/Buddhika/Development/cloud/google/myapp/node_modules/loopback-component-push/node_modules/apn/lib/connection.js:175:17)
at /Users/Buddhika/Development/cloud/google/myapp/node_modules/loopback-component-push/node_modules/apn/node_modules/q/q.js:1225:26
at _fulfilled (/Users/Buddhika/Development/cloud/google/myapp/node_modules/loopback-component-push/node_modules/apn/node_modules/q/q.js:830:54)
a
Please find my configuration below. Even if I use sample certificates, keys in the example2.0 in the module, the server will crash.
varmyApp={id: 'xxxxxxx',userId: 'xxxxxx',name: config.getApplicationName(),description: ' xxxx Notification',pushSettings: {apns: {certData: //my apns certkeyData: //my apns key,pushOptions: {// Extra options can go here for APN},feedbackOptions: {batchFeedback: true,interval: 300}},gcm: {serverApiKey: //my gcm Key, this works perfectly}}};
I can not find a place to attach files here hence I will post my cert and the key.
Try like so
...
pushOptions: {
port: 2195
// Extra options can go here for APN
},
feedbackOptions: {
batchFeedback: true,
interval: 300,
port: 2196
}
...
Hi,
I have a problem with sending push notification from my application error. Please someone let me know how to fix this since I am trying to fix this issue for a month now.
Please find my configuration below. Even if I use sample certificates, keys in the example2.0 in the module, the server will crash.
dependencies:
Push settings
I can not find a place to attach files here hence I will post my cert and the key.
Key
Cert
Thanks
Buddhika
The text was updated successfully, but these errors were encountered: