A. Check the app settings for any options related to background activity and ensure it is allowed to run in the background. B. Disable battery optimization for the app in your phone's settings to prevent it from closing when the phone locks.