When I used the simulator to test this method, I found that I didn't make any changes and just moved the app to the background, but this method was still called. It's strange.