Alerts are not given when the app is in the foreground