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
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
}}