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:
parent
50ddbcf609
commit
2cd3571f25
@ -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()
|
||||||
|
@ -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'
|
||||||
)
|
]
|
||||||
|
|
||||||
];
|
];
|
Loading…
Reference in New Issue
Block a user