From 2cd3571f253428c119816b3d908dab219261304a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 29 Feb 2016 21:35:14 +1100 Subject: [PATCH] iOS Push Notifications --- app/Ninja/Notifications/PushFactory.php | 7 +++++++ config/push-notification.php | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/Ninja/Notifications/PushFactory.php b/app/Ninja/Notifications/PushFactory.php index 8a28e2832ab2..7f882ff1d0a0 100644 --- a/app/Ninja/Notifications/PushFactory.php +++ b/app/Ninja/Notifications/PushFactory.php @@ -14,6 +14,13 @@ class PushFactory { /** * PushFactory constructor. + * + * @param $this->certificate - Development or production. + * + * Static variables defined in routes.php + * + * IOS_PRODUCTION_PUSH + * IOS_DEV_PUSH */ public function __construct() diff --git a/config/push-notification.php b/config/push-notification.php index f3d2a034f7c7..89dd441ab531 100644 --- a/config/push-notification.php +++ b/config/push-notification.php @@ -2,22 +2,22 @@ return [ - 'devNinjaIOS' => array( + 'devNinjaIOS' => [ 'environment' =>'development', 'certificate'=>app_path().'/certs/ninjaIOS.pem', 'passPhrase' =>'', 'service' =>'apns' - ), - 'ninjaIOS' => array( + ], + 'ninjaIOS' => [ 'environment' =>'production', 'certificate'=>app_path().'/certs/productionNinjaIOS.pem', 'passPhrase' =>'', 'service' =>'apns' - ), - 'ninjaAndroid' => array( + ], + 'ninjaAndroid' => [ 'environment' =>'production', 'apiKey' =>'yourAPIKey', 'service' =>'gcm' - ) + ] ]; \ No newline at end of file