diff --git a/index.js b/index.js index 0b8dda65cf..92bbee44a5 100644 --- a/index.js +++ b/index.js @@ -17,6 +17,17 @@ if (process.env.GCM_SENDER_ID && process.env.GCM_API_KEY) { apiKey: process.env.GCM_API_KEY || ''}; } +if (process.env.APNS_ENABLE) { + pushConfig['ios'] = [ + { + pfx: 'ParsePushDevelopmentCertificate.p12', // P12 file only + bundleId: 'beta.codepath.parsetesting', // change to match bundleId + production: false // dev certificate + } + ] +} + + var filesAdapter = null; // enable Gridstore to be the default if (process.env.S3_ENABLE) { var S3Adapter = require('parse-server').S3Adapter;