Merge pull request #100 from strongloop/feature/simplify-gcm-settings

Define schema for GCM push-notification settings
This commit is contained in:
Miroslav Bajtoš 2013-12-17 09:54:34 -08:00
commit 0557237fa7
1 changed files with 6 additions and 3 deletions

View File

@ -23,11 +23,14 @@ var APNSSettingSchema = {
}} }}
}; };
var GcmSettingsSchema = {
serverApiKey: String
}
// Push notification settings // Push notification settings
var PushNotificationSettingSchema = { var PushNotificationSettingSchema = {
platform: {type: String, required: true}, // apns, gcm, mpns apns: APNSSettingSchema,
// configuration: {type: Object} // platform-specific configurations gcm: GcmSettingsSchema
apns: APNSSettingSchema
}; };
/** /**