Fixed notifications to handle them when the app is closed-resumed and when it is still running