Define schema for GCM push-notification settings

Remove unused property PushNotificationSettingSchema.platform.

Flatten GCM settings schema. There is no need to distinquish between
pushOptions and feedback, as there is only single HTTP channel shared
by both.
This commit is contained in:
Miroslav Bajtoš 2013-12-17 18:44:13 +01:00
parent 09fbb8a850
commit d09e3225cd
1 changed files with 6 additions and 3 deletions

View File

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