From d09e3225cd7a85265d45cae54eda739f412eb8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 17 Dec 2013 18:44:13 +0100 Subject: [PATCH] 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. --- lib/models/application.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/models/application.js b/lib/models/application.js index 646e2897..77ac76d1 100644 --- a/lib/models/application.js +++ b/lib/models/application.js @@ -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 }; /**