How to record when the app is in the background
How to record when the app is in the background