From ac2f4de9d31d983f258613066aa64936fb869608 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 18 Dec 2013 12:28:48 -0800 Subject: [PATCH] Remove the default values for gateway/port --- lib/models/application.js | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/lib/models/application.js b/lib/models/application.js index 9cca6c77..7568bd78 100644 --- a/lib/models/application.js +++ b/lib/models/application.js @@ -9,18 +9,28 @@ var AuthenticationSchemeSchema = { // See https://github.com/argon/node-apn/blob/master/doc/apn.markdown var APNSSettingSchema = { - production: Boolean, // production or development mode - certData: String, // The certificate data - keyData: String, // The key data + /** + * production or development mode. It denotes what default APNS servers to be + * used to send notifications + * - true (production mode) + * - push: gateway.push.apple.com:2195 + * - feedback: feedback.push.apple.com:2196 + * - false (development mode, the default) + * - push: gateway.sandbox.push.apple.com:2195 + * - feedback: feedback.sandbox.push.apple.com:2196 + */ + production: Boolean, + certData: String, // The certificate data loaded from the cert.pem file + keyData: String, // The key data loaded from the key.pem file pushOptions: {type: { - gateway: {type: String, default: 'gateway.sandbox.push.apple.com'}, - port: {type: Number, default: 2195} + gateway: String, + port: Number }}, feedbackOptions: {type: { - gateway: {type: String, default: 'feedback.sandbox.push.apple.com'}, - port: {type: Number, default: 2196}, + gateway: String, + port: Number, batchFeedback: Boolean, interval: Number }}