activated live push messages
This commit is contained in:
parent
dd323425d2
commit
c4d57f3eaf
@ -28,6 +28,8 @@ class Crunchbutton_Message_Push_Ios extends Crunchbutton_Message {
|
|||||||
$category = $to['category'];
|
$category = $to['category'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$env = $to['env'] ? $to['env'] : c::getEnv();
|
||||||
|
|
||||||
$to = $to['to'];
|
$to = $to['to'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,12 +43,10 @@ class Crunchbutton_Message_Push_Ios extends Crunchbutton_Message {
|
|||||||
|
|
||||||
$message = trim($message);
|
$message = trim($message);
|
||||||
|
|
||||||
$env = c::getEnv();
|
|
||||||
|
|
||||||
$certs = c::config()->dirs->root.'ssl/';
|
$certs = c::config()->dirs->root.'ssl/';
|
||||||
|
|
||||||
// @todo: change this after aproved
|
// @todo: change this after aproved
|
||||||
if (1==2 && $env == 'live') {
|
if ($env == 'live') {
|
||||||
$push = new ApnsPHP_Push(
|
$push = new ApnsPHP_Push(
|
||||||
ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION,
|
ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION,
|
||||||
$certs.'aps_production_com.crunchbutton.cockpit.pem'
|
$certs.'aps_production_com.crunchbutton.cockpit.pem'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user