1 min readAug 25, 2019
As far as I know, applicationWillTerminate
will not be trigger for the mentioned case. For my app, I am using UIApplicationWillResignActive
. You can refer this for more details: https://www.hackingwithswift.com/example-code/system/how-to-detect-when-your-app-moves-to-the-background