I create a new empty project in Unity and build it on iOS platform and run it on Mac Catalyst. However, I want to figure out the difference between close and minimize. With the help of log, they both called applicationWillResignActive and applicationDidEnterBackground. But there are no backgroundTasks to do, so why does clicking the close button call applicationWillTerminate after applicationDidEnterBackground while clicking the minimize button doesn't?
And I ask this question because if there are backgroundTasks to do, then clicking close button doesn't really quit the app, it will do backgroundTasks. So I want when clicking close button, I don't want to do backgroundTasks, just call applicationWillTerminate and quit it. But How do I do that? It confuses me very long time...
Any suggestions will be really appreciate!!