Merge pull request #100 from strongloop/feature/simplify-gcm-settings
Define schema for GCM push-notification settings
This commit is contained in:
commit
0557237fa7
|
@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue