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
|
// 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
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue