After an exhausting day of trying to implement a process that runs in the background (even after closing the application) and checks for new notifications, I have reached a