Hope you guys already know that we need to migrate to scene-based life cycle in near future.

Below lines are written in this reference document provided by Apple.
In iOS 18.4, iPadOS 18.4, Mac Catalyst 18.4, tvOS 18.4, visionOS 2.4 and later, UIKit logs the this message for apps that haven’t adopted the scene-based life-cycle.
This process does not adopt UIScene lifecycle. This will become an assert in a future version.
Soon, all UIKit based apps will be required to adopt the scene-based life-cycle, after which your app won’t launch if you don’t. While supporting multiple scenes is encouraged, only adoption of scene life-cycle is required.
Here I am discussing about the methods applicationWillEnterForeground
and sceneWillEnterForeground
actually work same or not? As there are key differences let’s discuss in detail.