For the alarm to function the app must be running in the foreground. However, the app does not need to be running at all for the camera to make recordings. These will transfer to your IOS device once you start SAMi again.