1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

iOS Push Notifications

This commit is contained in:
David Bomba 2016-02-29 21:35:14 +11:00
parent 50ddbcf609
commit 2cd3571f25
2 changed files with 13 additions and 6 deletions

View File

@ -14,6 +14,13 @@ class PushFactory
{ {
/** /**
* PushFactory constructor. * PushFactory constructor.
*
* @param $this->certificate - Development or production.
*
* Static variables defined in routes.php
*
* IOS_PRODUCTION_PUSH
* IOS_DEV_PUSH
*/ */
public function __construct() public function __construct()

View File

@ -2,22 +2,22 @@
return [ return [
'devNinjaIOS' => array( 'devNinjaIOS' => [
'environment' =>'development', 'environment' =>'development',
'certificate'=>app_path().'/certs/ninjaIOS.pem', 'certificate'=>app_path().'/certs/ninjaIOS.pem',
'passPhrase' =>'', 'passPhrase' =>'',
'service' =>'apns' 'service' =>'apns'
), ],
'ninjaIOS' => array( 'ninjaIOS' => [
'environment' =>'production', 'environment' =>'production',
'certificate'=>app_path().'/certs/productionNinjaIOS.pem', 'certificate'=>app_path().'/certs/productionNinjaIOS.pem',
'passPhrase' =>'', 'passPhrase' =>'',
'service' =>'apns' 'service' =>'apns'
), ],
'ninjaAndroid' => array( 'ninjaAndroid' => [
'environment' =>'production', 'environment' =>'production',
'apiKey' =>'yourAPIKey', 'apiKey' =>'yourAPIKey',
'service' =>'gcm' 'service' =>'gcm'
) ]
]; ];