diff --git a/.gitignore b/.gitignore index 23e8a8b..5d6da8b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ app/logs/*.log .vscode/ .vscode/sftp.json app/updater/*.bin +logs/* + diff --git a/app/class/NotificationManager.php b/app/class/NotificationManager.php index d33e488..7df24ca 100644 --- a/app/class/NotificationManager.php +++ b/app/class/NotificationManager.php @@ -37,7 +37,7 @@ class NotificationManager $notification = new Notification($serverKey); $notification->to($to); - $notification->notification($data['title'], $data['body'], $data['icon'], ''); + $notification->notification($data['title'], date("h:i") . " - " . $data['body'], $data['icon'], ''); $answer = $notification->send(); $notification = null; @@ -76,7 +76,7 @@ class Notification } $this->jsonPayload["data"]["notification"]["title"] = $title; - $this->jsonPayload["data"]["notification"]["body"] = $body; + $this->jsonPayload["data"]["notification"]["body"] = date("h:i") . " - " . $body; $this->jsonPayload["data"]["notification"]["icon"] = $icon; $this->jsonPayload["data"]["notification"]["click_action"] = $action; }