Made a static method to add notifications from the server to the
interface.