Remove the default values for gateway/port

This commit is contained in:
Raymond Feng 2013-12-18 12:28:48 -08:00
parent 598b1e6b61
commit ac2f4de9d3
1 changed files with 17 additions and 7 deletions

View File

@ -9,18 +9,28 @@ var AuthenticationSchemeSchema = {
// See https://github.com/argon/node-apn/blob/master/doc/apn.markdown // See https://github.com/argon/node-apn/blob/master/doc/apn.markdown
var APNSSettingSchema = { var APNSSettingSchema = {
production: Boolean, // production or development mode /**
certData: String, // The certificate data * production or development mode. It denotes what default APNS servers to be
keyData: String, // The key data * 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: { pushOptions: {type: {
gateway: {type: String, default: 'gateway.sandbox.push.apple.com'}, gateway: String,
port: {type: Number, default: 2195} port: Number
}}, }},
feedbackOptions: {type: { feedbackOptions: {type: {
gateway: {type: String, default: 'feedback.sandbox.push.apple.com'}, gateway: String,
port: {type: Number, default: 2196}, port: Number,
batchFeedback: Boolean, batchFeedback: Boolean,
interval: Number interval: Number
}} }}