, * push: list, * admin-notifications: list, * }, * } */ #[\Override] public function getCapabilities(): array { $capabilities = [ 'notifications' => [ 'ocs-endpoints' => [ 'list', 'get', 'delete', 'delete-all', 'icons', 'rich-strings', 'action-web', 'user-status', 'exists', 'test-push', ], 'push' => [ 'devices', 'object-data', 'delete', ], 'admin-notifications' => [ 'ocs', 'cli', ], ], ]; if ($this->appConfig->getAppValueBool('webpush_enabled')) { $capabilities['notifications']['push'][] = 'webpush'; if ($this->appConfig->getAppValueBool('webpush_browsers_enabled')) { $capabilities['notifications']['push'][] = 'webpush-browsers'; } } return $capabilities; } }