/**
 * GCMKey provider
 *
 * @description :: Server-side logic for managing users
 * @help        :: See http://links.sailsjs.org/docs/controllers
 */

module.exports = {
key: function key(req, res) {
  sails.log("Google Project Number: " + sails.config.gcm.projectNumber);
  res.json(sails.config.gcm.projectNumber);
}
};

/**
 * GCMKey provider
 *
 * @description :: Server-side logic for managing users
 * @help        :: See http://links.sailsjs.org/docs/controllers
 */

module.exports = {
key: function key(req, res) {
  sails.log("Google Project Number: " + sails.config.push.gcm.projectNumber);
  res.json(sails.config.push.gcm.projectNumber);
}
};

--- 
+++ 
@@ -7,7 +7,7 @@
 
 module.exports = {
 key: function key(req, res) {
-  sails.log("Google Project Number: " + sails.config.push.gcm.projectNumber);
-  res.json(sails.config.push.gcm.projectNumber);
+  sails.log("Google Project Number: " + sails.config.gcm.projectNumber);
+  res.json(sails.config.gcm.projectNumber);
 }
 };
Use correct sails.config for GCM key
