Disable Shopware administration notification worker

Viewed 74

Right now the administration notification worker sends a request every 5s. This is quite annoying when debugging with a debugger like xdebug, because the requests pile up.
Is there a way (maybe through configuration) to disable the fetch of notifications?

1 Answers

Not a permanent solution but you can overwrite the function that fetches the notifications by executing the following in the dev-tools console of your browser:

Shopware.Service('notificationsService').fetchNotifications = () => Promise.resolve({ notifications: [] });

You could also automate that by using an browser extension or writing a small plugin that has a minimal admin component just containing that line.

Related