fix: notification worker reliability + version bump to 1.1.0

- Bump android versionCode=2 versionName=1.1.0
- NotificationWorker: use UPDATE policy to reschedule after login
- Immediate notification check on login via LaunchedEffect
- Added logging for debugging notification delivery
- DB already has test notification inserted
- Fixed admin app version form (POST redirect)
This commit is contained in:
2026-06-09 17:31:26 -04:00
parent 1f67fc1fcd
commit ddec27ca5c
5 changed files with 43 additions and 9 deletions

View File

@@ -469,7 +469,17 @@ class ApiController
public function appVersion(): void
{
$db = \ServerManager\Core\Database::getInstance();
$configs = $db->fetchAll('SELECT * FROM app_config');
try {
$configs = $db->fetchAll('SELECT * FROM app_config');
} catch (\Throwable $e) {
$this->view->json([
'success' => false,
'error' => 'Database error',
], 500);
return;
}
$config = [];
foreach ($configs as $row) {
$config[$row['key']] = $row['value'];