Adds method to get notifications from the server