I am working on an iOS app that sends the user a scheduled local notification every minute. However, I want to do this only when the phone is in use. As of now, it sends the notifications even when the phone is locked. Is there any way I can code for this in Swift? Thank you so much!