HOR-684 Permitir deshabilitar las notificaciones de Mobile

HOR-684 change name variable

HOR-684 up observations
This commit is contained in:
Ronald Q
2016-04-05 11:34:37 -04:00
parent 4b5cc4f910
commit 1c7794bb9a
3 changed files with 60 additions and 44 deletions

View File

@@ -7,6 +7,18 @@ use G;
class NotificationDevice
{
public function checkMobileNotifications()
{
$conf = \System::getSystemConfiguration('', '', SYS_SYS);
$activeNotifications = true;
if (isset($conf['mobileNotifications'])) {
$activeNotifications = $conf['mobileNotifications'] == 1 ? true : false;
}
return $activeNotifications;
}
/**
* Post Create register device with userUid
*