From cde64a93fe7d3ecf3dbbb29bfb085dda7423073a Mon Sep 17 00:00:00 2001 From: Roger Hu Date: Wed, 16 Mar 2016 00:24:19 -0700 Subject: [PATCH] Add APNS example code too. --- index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;